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

can't run upgrade before #18

Closed
peter100u opened this issue Dec 16, 2021 · 12 comments
Closed

can't run upgrade before #18

peter100u opened this issue Dec 16, 2021 · 12 comments

Comments

@peter100u
Copy link

flutter doctor:
mongol: ^2.2.2

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.0, on macOS 11.6 20G165 darwin-x64, locale
zh-Hans-US)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3)
[✓] VS Code (version 1.62.2)
[✓] VS Code (version 1.55.2)
[✓] Connected device (4 available)

error info:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.0, on macOS 11.6 20G165 darwin-x64, locale
zh-Hans-US)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3)
[✓] VS Code (version 1.62.2)
[✓] VS Code (version 1.55.2)
[✓] Connected device (4 available)
../../../Documents/core_lib/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-2.2.1/lib/src/editing/mongol_editable_text.dart:1036:7: Error: The non-abstract class 'MongolEditableTextState' is missing implementations for these members:
- AutofillClient.autofill
- 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 MongolEditableTextState extends State<MongolEditableText>
      ^^^^^^^^^^^^^^^^^^^^^^^
../../../Documents/core_lib/flutter/packages/flutter/lib/src/services/autofill.dart:765:8: Context: 'AutofillClient.autofill' is defined here.
  void autofill(TextEditingValue newEditingValue);
       ^^^^^^^^
../../../Documents/core_lib/flutter/packages/flutter/lib/src/services/text_input.dart:985:8: Context: 'TextSelectionDelegate.copySelection' is defined here.
  void copySelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^^
../../../Documents/core_lib/flutter/packages/flutter/lib/src/services/text_input.dart:965:8: Context: 'TextSelectionDelegate.cutSelection' is defined here.
  void cutSelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^
../../../Documents/core_lib/flutter/packages/flutter/lib/src/services/text_input.dart:973:16: Context: 'TextSelectionDelegate.pasteText' is defined here.
  Future<void> pasteText(SelectionChangedCause cause);
               ^^^^^^^^^
../../../Documents/core_lib/flutter/packages/flutter/lib/src/services/text_input.dart:979:8: Context: 'TextSelectionDelegate.selectAll' is defined here.
  void selectAll(SelectionChangedCause cause);
       ^^^^^^^^^
../../../Documents/core_lib/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-2.2.1/lib/src/editing/mongol_editable_text.dart:2055:11: Error: The argument type 'AutofillConfiguration?' can't be assigned to the parameter type 'AutofillConfiguration' because 'AutofillConfiguration?' is nullable and 'AutofillConfiguration' isn't.
 - 'AutofillConfiguration' is from 'package:flutter/src/services/autofill.dart' ('../../../Documents/core_lib/flutter/packages/flutter/lib/src/services/autofill.dart').
          ? null
          ^
../../../Documents/core_lib/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-2.2.1/lib/src/editing/mongol_editable_text.dart:2089:36: Error: Too few positional arguments: 2 required, 1 given.
        ? () => controls!.handleCut(this)
                                   ^
../../../Documents/core_lib/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-2.2.1/lib/src/editing/text_selection/mongol_text_selection_controls.dart:59:52: Error: Too few positional arguments: 2 required, 1 given.
      handleCut: canCut(delegate) ? () => handleCut(delegate) : null,
@suragch
Copy link
Owner

suragch commented Dec 18, 2021

Thank you for the notification. I'll look into this and try to get an update out soon.

@peter100u
Copy link
Author

Thank you for the notification. I'll look into this and try to get an update out soon.

Looking forward to your good news

@suragch
Copy link
Owner

suragch commented Dec 18, 2021

@peter100u Do you use MongolTextField? The last few updates have broken it and even when I got it to compile for Flutter 2.5 it still would crash if you scrolled the text. I'm thinking about doing a breaking change version bump and just removing MongolTextField until I can implement a better solution that doesn't break on every Flutter upgrade.

@peter100u
Copy link
Author

no, I use mongoltext

@peter100u
Copy link
Author

@peter100u Do you use MongolTextField? The last few updates have broken it and even when I got it to compile for Flutter 2.5 it still would crash if you scrolled the text. I'm thinking about doing a breaking change version bump and just removing MongolTextField until I can implement a better solution that doesn't break on every Flutter upgrade.

I can't run the project now. I see your class, but I don't use it. I think you need to adapt to the latest API

@suragch
Copy link
Owner

suragch commented Dec 18, 2021

Yes, that's right. Since, MongolTextField was already broken, though, I'm just going to remove it. MongolText still seems to be working ok. I'm testing everything now.

@peter100u
Copy link
Author

哈哈, Looking forward to your good news

@suragch
Copy link
Owner

suragch commented Dec 18, 2021

Ok, I released version 3.0.0 without MongolTextField. Can you try it out and let me know if it works?

@peter100u
Copy link
Author

ok, i try it , thank you !

@peter100u
Copy link
Author

Thank you very much. It's ready to use

@peter100u
Copy link
Author

it's ok

@suragch
Copy link
Owner

suragch commented Dec 18, 2021

Thank you for checking

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