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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The non-abstract class 'RawEditorState' is missing implementations for these members: #62

Open
Ruslanbek0809 opened this issue May 18, 2023 · 2 comments

Comments

@Ruslanbek0809
Copy link

After upgrading flutter version to 3.10, following errors occured. Please fix it asap:

Error: The non-abstract class 'RawEditorState' is missing implementations for these members:
editor.dart:714
 - TextInputClient.insertContent
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
      ^^^^^^^^^^^^^^
/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1117:8: Context: 'TextInputClient.insertContent' is defined here.
  void insertContent(KeyboardInsertedContent content) {}
       ^^^^^^^^^^^^^
: Error: Type 'DragSelectionUpdateCallback' not found.
text_selection.dart:1069
  final DragSelectionUpdateCallback? onDragSelectionUpdate;

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
: Error: 'DragSelectionUpdateCallback' isn't a type.
text_selection.dart:1069
  final DragSelectionUpdateCallback? onDragSelectionUpdate;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
: Error: No named parameter with the name 'kind'.
text_selection.dart:1250
            debugOwner: this, kind: PointerDeviceKind.touch),
                              ^^^^
/C:/flutter/packages/flutter/lib/src/gestures/long_press.dart:248:3: Context: Found this candidate, but the arguments don't match.
  LongPressGestureRecognizer({
  ^^^^^^^^^^^^^^^^^^^^^^^^^^
: Error: No named parameter with the name 'kind'.
text_selection.dart:1268
            debugOwner: this, kind: PointerDeviceKind.mouse),
                              ^^^^
@adnan-nazir
Copy link

adnan-nazir commented May 30, 2023

Also facing the same issue on Flutter 3.10.2
FLUTTER DOCTOR

`

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.2, on macOS 12.6.3 21G419 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version
32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.78.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!`

Screenshot 2023-05-30 at 1 30 18 PM

@hunterino
Copy link

Also facing the same issue on Flutter 3.10.3
FLUTTER DOCTOR

[✓] Flutter (Channel stable, 3.10.3, on macOS 13.4 22F66 darwin-x64, locale
en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.3)
[✓] VS Code (version 1.79.0)

Waiting for connection from debug service on Chrome...
../flutterlib/zefyrka/lib/src/widgets/text_selection.dart:1069:9: Error: Type 'DragSelectionUpdateCallback' not found.
final DragSelectionUpdateCallback? onDragSelectionUpdate;
^^^^^^^^^^^^^^^^^^^^^^^^^^^
../flutterlib/zefyrka/lib/src/widgets/editor.dart:723:7: Error: The non-abstract class 'RawEditorState' is missing implementations for these members:

  • TextInputClient.insertContent
    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
^^^^^^^^^^^^^^
../flutter/packages/flutter/lib/src/services/text_input.dart:1117:8: Context: 'TextInputClient.insertContent' is defined here.
void insertContent(KeyboardInsertedContent content) {}
^^^^^^^^^^^^^
../flutterlib/zefyrka/lib/src/widgets/text_selection.dart:1069:9: Error: 'DragSelectionUpdateCallback' isn't a type.
final DragSelectionUpdateCallback? onDragSelectionUpdate;
^^^^^^^^^^^^^^^^^^^^^^^^^^^
../flutterlib/zefyrka/lib/src/widgets/text_selection.dart:1250:31: Error: No named parameter with the name 'kind'.
debugOwner: this, kind: PointerDeviceKind.touch),
^^^^
../flutter/packages/flutter/lib/src/gestures/long_press.dart:248:3: Context: Found this candidate, but the arguments don't match.
LongPressGestureRecognizer({
^^^^^^^^^^^^^^^^^^^^^^^^^^
../flutterlib/zefyrka/lib/src/widgets/text_selection.dart:1268:31: Error: No named parameter with the name 'kind'.
debugOwner: this, kind: PointerDeviceKind.mouse),
^^^^
../flutter/packages/flutter/lib/src/gestures/monodrag.dart:630:3: Context: Found this candidate, but the arguments don't match.
HorizontalDragGestureRecognizer({
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed to compile application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants