memo
memo copied to clipboard
Error: The non-abstract class 'RawEditorState' is missing implementations ...
I faced this issue👇🏽 after cloning this repo and trying to build it after doing flutter pub get. I tried to run it on some emulators and my phone.
version: 0.2.0+0
Launching lib/main.dart on Pixel 4a in debug mode...
Running Gradle task 'assembleDebug'...
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.0.22/lib/src/widgets/raw_editor.dart:100:7: Error: The non-abstract class 'RawEditorState' is missing implementations for these members:
- 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 RawEditorState extends EditorState
^^^^^^^^^^^^^^
../../Downloads/flutter/packages/flutter/lib/src/services/text_input.dart:985:8: Context: 'TextSelectionDelegate.copySelection' is defined here.
void copySelection(SelectionChangedCause cause);
^^^^^^^^^^^^^
../../Downloads/flutter/packages/flutter/lib/src/services/text_input.dart:965:8: Context: 'TextSelectionDelegate.cutSelection' is defined here.
void cutSelection(SelectionChangedCause cause);
^^^^^^^^^^^^
../../Downloads/flutter/packages/flutter/lib/src/services/text_input.dart:973:16: Context: 'TextSelectionDelegate.pasteText' is defined here.
Future<void> pasteText(SelectionChangedCause cause);
^^^^^^^^^
../../Downloads/flutter/packages/flutter/lib/src/services/text_input.dart:979:8: Context: 'TextSelectionDelegate.selectAll' is defined here.
void selectAll(SelectionChangedCause cause);
^^^^^^^^^
@ggirotto @matuella Can you help?
Hi @kamalbanga we're still investigating the issue. As a temporary workaround you may bump flutter_quill from 2.0.22 to its latest release 3.3.1, it seems to fix the issue.
I'm running it to this problem, too. I downloaded the latest release which contains this
# Keep dependency locked, as we need it to be the exact same in `memo-editor`
flutter_quill: 4.0.10