znjameswu / flutter_math

Math rendering and editing in pure Flutter.
https://znjameswu.github.io/flutter_math_demo/
Apache License 2.0
123 stars 52 forks source link

failed build with flutter 2.5.3 #51

Open Mon-ius opened 2 years ago

Mon-ius commented 2 years ago

--- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:x86_64, id:5B5D3D31-4199-58BB-A20C-ED2BB1C54620 } { platform:macOS, name:Any Mac } /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selectable.dart:407:7: Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:

class InternalSelectableMathState extends State ^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.2/flutter/packages/flutter/lib/src/services/text_input.dart:842:8: Context: 'TextSelectionDelegate.userUpdateTextEditingValue' is defined here. void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause); ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selection/overlay_manager.dart:84:8: Error: The method 'SelectionOverlayManagerMixin.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'. void hideToolbar() { ^ /usr/local/Caskroom/flutter/2.2.2/flutter/packages/flutter/lib/src/services/text_input.dart:849:8: Context: This is the overridden method ('hideToolbar'). void hideToolbar([bool hideHandles = true]); ^ /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selectable.dart:407:7: Error: Applying the mixin 'SelectionOverlayManagerMixin' to 'State with AutomaticKeepAliveClientMixin, FocusManagerMixin, SelectionManagerMixin' introduces an erroneous override of 'hideToolbar'. class InternalSelectableMathState extends State ^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selection/overlay_manager.dart:84:8: Context: The method 'SelectionOverlayManagerMixin.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'. void hideToolbar() { ^ /usr/local/Caskroom/flutter/2.2.2/flutter/packages/flutter/lib/src/services/text_input.dart:849:8: Context: This is the overridden method ('hideToolbar'). void hideToolbar([bool hideHandles = true]); ^ /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selectable.dart:407:7: Error: The implementation of 'hideToolbar' in the non-abstract class 'InternalSelectableMathState' does not conform to its interface. class InternalSelectableMathState extends State ^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selectable.dart:407:7: Context: The method 'State with AutomaticKeepAliveClientMixin, FocusManagerMixin, SelectionManagerMixin, SelectionOverlayManagerMixin.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'. class InternalSelectableMathState extends State ^ /usr/local/Caskroom/flutter/2.2.2/flutter/packages/flutter/lib/src/services/text_input.dart:849:8: Context: This is the overridden method ('hideToolbar'). void hideToolbar([bool hideHandles = true]); ^ /usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math-0.3.0-nullsafety.1/lib/src/widgets/selection/overlay.dart:301:47: Error: Too few positional arguments: 8 required, 7 given. child: selectionControls!.buildToolbar( ^

Command PhaseScriptExecution failed with a nonzero exit code note: Using new build system note: Planning note: Build preparation complete note: Building targets in dependency order BUILD FAILED

battucave commented 2 years ago

Any update on this issue ? Lot of people are facing this issue now

battucave commented 2 years ago

Building without sound null safety For more information see https://dart.dev/null-safety/unsound-null-safety

/usr/local/Caskroom/flutter/2.2.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.3.3+1/lib/src/widgets/selectable.dart:407:7: Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:

class InternalSelectableMathState extends State ^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1034:8: Context: 'TextSelectionDelegate.copySelection' is defined here. void copySelection(SelectionChangedCause cause); ^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1014:8: Context: 'TextSelectionDelegate.cutSelection' is defined here. void cutSelection(SelectionChangedCause cause); ^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1022:16: Context: 'TextSelectionDelegate.pasteText' is defined here. Future pasteText(SelectionChangedCause cause); ^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1028:8: Context: 'TextSelectionDelegate.selectAll' is defined here. void selectAll(SelectionChangedCause cause); ^^^^^^^^^ lib/common/ui.dart:22:25: Error: Undefined name 'SnackDismissDirection'. dismissDirection: SnackDismissDirection.HORIZONTAL, ^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

BUILD FAILED in 26s Running Gradle task 'assembleRelease'... 27.3s Gradle task assembleRelease failed with exit code 1 (base) admin@signs Whoisavailable_provider_11122021_reupload-1 % flutter pub get
Running "flutter pub get" in Whoisavailable_provider_11122021_reupload-1... 2,644ms (base) admin@signs Whoisavailable_provider_11122021_reupload-1 % flutter build apk --release

Building without sound null safety For more information see https://dart.dev/null-safety/unsound-null-safety

/usr/local/Caskroom/flutter/2.2.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.3.3+1/lib/src/widgets/selectable.dart:407:7: Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:

class InternalSelectableMathState extends State ^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1034:8: Context: 'TextSelectionDelegate.copySelection' is defined here. void copySelection(SelectionChangedCause cause); ^^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1014:8: Context: 'TextSelectionDelegate.cutSelection' is defined here. void cutSelection(SelectionChangedCause cause); ^^^^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1022:16: Context: 'TextSelectionDelegate.pasteText' is defined here. Future pasteText(SelectionChangedCause cause); ^^^^^^^^^ /usr/local/Caskroom/flutter/2.2.0/flutter/packages/flutter/lib/src/services/text_input.dart:1028:8: Context: 'TextSelectionDelegate.selectAll' is defined here. void selectAll(SelectionChangedCause cause); ^^^^^^^^^ lib/common/ui.dart:22:25: Error: Undefined name 'SnackDismissDirection'. dismissDirection: SnackDismissDirection.HORIZONTAL, ^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

BUILD FAILED in 26s Running Gradle task 'assembleRelease'... 27.2s Gradle task assembleRelease failed with exit code 1