Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The non-abstract class 'RawEditorState' is missing implementations ... #287

Open
kamalbanga opened this issue Jan 17, 2022 · 3 comments
Labels
needs triage Waiting for a responsible to categorize the issue

Comments

@kamalbanga
Copy link

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);
       ^^^^^^^^^
@kamalbanga kamalbanga added the needs triage Waiting for a responsible to categorize the issue label Jan 17, 2022
@kamalbanga
Copy link
Author

kamalbanga commented Jan 18, 2022

@ggirotto @matuella Can you help?

@ggirotto
Copy link
Contributor

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.

@keith555
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for a responsible to categorize the issue
Projects
None yet
Development

No branches or pull requests

3 participants