glynskyi / zefyrka

Soft and gentle rich text editing for Flutter applications
MIT License
110 stars 74 forks source link

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

Open Ruslanbek0809 opened 1 year ago

Ruslanbek0809 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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:

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.