Skip to content

flutter_html causing issues building on Flutter 2.8.0 with dep flutter_math_fork #942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sembauke opened this issue Dec 11, 2021 · 9 comments · Fixed by #661
Closed

flutter_html causing issues building on Flutter 2.8.0 with dep flutter_math_fork #942

Sembauke opened this issue Dec 11, 2021 · 9 comments · Fixed by #661
Labels
bug Something isn't working

Comments

@Sembauke
Copy link

In the new flutter 2.8.0 the dev dependency flutter_math_fork causes issues trying to run debug.
Here is the current error message when trying to build:

: Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:
../…/widgets/selectable.dart:407
 - TextSelectionDelegate.copySelection
 - TextSelectionDelegate.cutSelection
 - TextSelectionDelegate.pasteText
 - TextSelectionDelegate.selectAll
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class InternalSelectableMathState extends State<InternalSelectableMath>
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
: Context: 'TextSelectionDelegate.copySelection' is defined here.
../…/services/text_input.dart:985
  void copySelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^^

@Sembauke Sembauke added the bug Something isn't working label Dec 11, 2021
@erickok
Copy link
Contributor

erickok commented Dec 11, 2021

Yes we are waiting for our dependencies to update.

@Sembauke
Copy link
Author

How long would that approximately Take?

@tneotia
Copy link
Contributor

tneotia commented Dec 12, 2021

We can't say since they are our dependencies... I'd check in on flutter_math_fork and see if they have any updates.

@ismuk
Copy link

ismuk commented Dec 14, 2021

As a temporary measure you can add

dependency_overrides: 
  flutter_math_fork: ^0.5.0

to your pubsec.yaml which has worked for me.

@Sembauke
Copy link
Author

Sembauke commented Dec 14, 2021

Thank you! @erickok can you me when the issue is fixed?

@tneotia
Copy link
Contributor

tneotia commented Dec 14, 2021

It seems flutter_math_fork has updated, so we will include this updated dependency soon.

@Sembauke
Copy link
Author

Thanks feel free to close this issue

tneotia added a commit to tneotia/flutter_html that referenced this issue Dec 18, 2021
@tneotia tneotia linked a pull request Dec 18, 2021 that will close this issue
6 tasks
@arupnaskarbkp
Copy link

Sir I request..please update flutter math frok package

@ModernaVaccine
Copy link

Related to this, simply adding the following dependencies to any flutter project will cause an error during "pub get"

environment:
  sdk: ">=2.15.1 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_svg: ^1.0.0
  flutter_html: ^2.2.1

Running "flutter pub get" in htmltest...
Because flutter_html >=2.0.0-nullsafety.1 <3.0.0-alpha.1 depends on flutter_svg >=0.22.0 <1.0.0 and htmltest depends on flutter_svg ^1.0.0, flutter_html >=2.0.0-nullsafety.1 <3.0.0-alpha.1 is forbidden.
So, because htmltest depends on flutter_html ^2.2.1, version solving failed.
pub get failed (1; So, because htmltest depends on flutter_html ^2.2.1, version solving failed.)
Process finished with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants