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 with (MongolEditableTextState) #5

Closed
Zolbayar8027 opened this issue May 10, 2021 · 3 comments
Closed

error with (MongolEditableTextState) #5

Zolbayar8027 opened this issue May 10, 2021 · 3 comments

Comments

@Zolbayar8027
Copy link

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-1.1.0/lib/src/editing/mongol_editable_text.dart:1013:7: Error: The non-abstract class 'MongolEditableTextState' is missing implementations for these members:

  • TextSelectionDelegate.userUpdateTextEditingValue
    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 MongolEditableTextState extends State
^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/services/text_input.dart:822:8: Context: 'TextSelectionDelegate.userUpdateTextEditingValue' is defined here.
void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause);
^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-1.1.0/lib/src/editing/mongol_editable_text.dart:1983:8: Error: The method 'MongolEditableTextState.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'.
void hideToolbar() {
^
/C:/src/flutter/packages/flutter/lib/src/services/text_input.dart:829:8: Context: This is the overridden method ('hideToolbar').
void hideToolbar([bool hideHandles = true]);
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-1.1.0/lib/src/editing/mongol_editable_text.dart:2156:43: Error: Required named parameter 'context' must be provided.
return widget.controller.buildTextSpan(
^

@suragch
Copy link
Owner

suragch commented May 10, 2021

It looks like this is an issue with a release of Flutter on the master channel. I'll probably need to update the package if this change makes it to the stable channel.

@suragch
Copy link
Owner

suragch commented May 23, 2021

This bug exists on the stable channel with Flutter 2.2 now. I'm working on fixing it.

@suragch
Copy link
Owner

suragch commented May 28, 2021

@ipcjs @Zolbayar8027
Version 2.0.0 of this package fixes this bug and basic functionality should all work again. There are a few bugs with MongolTextField, though, so please open another issue if they affect your app and I'll try to prioritize those bugs first.

@suragch suragch closed this as completed May 28, 2021
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

No branches or pull requests

2 participants