visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
283 stars 44 forks source link

Editor - Upgrade to latest Flutter API #159

Closed Phil9l closed 7 months ago

Phil9l commented 1 year ago

Class 'VisualEditorState' is missing implementations for TextInputClient.performSelector

When I'm trying to run project it fails with this error:

../../../.pub-cache/git/visual-editor-a64736d25cf091df4ce0f25befff8204b2268363/lib/main.dart:134:7: Error: The non-abstract
class 'VisualEditorState' is missing implementations for these members:
 - TextInputClient.performSelector
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 VisualEditorState extends State<VisualEditor>
      ^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/services/text_input.dart:1172:8: Context: 'TextInputClient.performSelector' is defined
here.
  void performSelector(String selectorName) {}
       ^^^^^^^^^^^^^^^

My flutter -v is

Flutter 3.4.0-34.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 71520442d4 (3 weeks ago) • 2022-10-05 16:38:28 -0500
Engine • revision db0cbb2145
Tools • Dart 2.19.0 (build 2.19.0-255.2.beta) • DevTools 2.18.0

Related problem and fix in another project: https://github.com/superlistapp/super_editor/issues/792 https://github.com/superlistapp/super_editor/pull/835/files

adrian-moisa commented 1 year ago

Will have a look soon on this one. Thank you for the full info you provided.