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 after Upgrading to Flutter 1.20 stable. #80

Closed
harshapulikollu opened this issue Aug 5, 2020 · 13 comments
Closed

Error after Upgrading to Flutter 1.20 stable. #80

harshapulikollu opened this issue Aug 5, 2020 · 13 comments

Comments

@harshapulikollu
Copy link

harshapulikollu commented Aug 5, 2020

Hi, After upgrading to flutter 1.20 stable version, facing below-mentioned errors.
I tried to repair cache too, but not fruitful.

../../.pub-cache/hosted/pub.dartlang.org/extended_text_field-3.0.1/lib/src/extended_editable_text.dart:759:7: Error: The non-abstract class 'ExtendedEditableTextState' is missing implementations for these members:
 - TextInputClient.currentAutofillScope
 - TextInputClient.showAutocorrectionPromptRect
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 ExtendedEditableTextState extends State<ExtendedEditableText>
      ^^^^^^^^^^^^^^^^^^^^^^^^^
../development/flutter/packages/flutter/lib/src/services/text_input.dart:790:21: Context: 'TextInputClient.currentAutofillScope' is defined here.
  AutofillScope get currentAutofillScope;
                    ^^^^^^^^^^^^^^^^^^^^
../development/flutter/packages/flutter/lib/src/services/text_input.dart:805:8: Context: 'TextInputClient.showAutocorrectionPromptRect' is defined here.
  void showAutocorrectionPromptRect(int start, int end);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_library-3.0.0/lib/src/selection/cupertino_text_selection_controls.dart:295:10: Error: The method 'ExtendedCupertinoTextSelectionControls.buildToolbar' has fewer positional arguments than those of overridden method 'TextSelectionControls.buildToolbar'.
  Widget buildToolbar(
         ^
../development/flutter/packages/flutter/lib/src/widgets/text_selection.dart:136:10: Context: This is the overridden method ('buildToolbar').
  Widget buildToolbar(
         ^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_library-3.0.0/lib/src/selection/material_text_selection_controls.dart:628:10: Error: The method 'ExtendedMaterialTextSelectionControls.buildToolbar' has fewer positional arguments than those of overridden method 'TextSelectionControls.buildToolbar'.
  Widget buildToolbar(
         ^
../development/flutter/packages/flutter/lib/src/widgets/text_selection.dart:136:10: Context: This is the overridden method ('buildToolbar').
  Widget buildToolbar(
         ^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_library-3.0.0/lib/src/selection/cupertino_text_selection_controls.dart:361:70: Error: The argument type 'void Function(TextSelectionDelegate, ClipboardStatusNotifier)' can't be assigned to the parameter type 'void Function(TextSelectionDelegate)'.
 - 'TextSelectionDelegate' is from 'package:flutter/src/services/text_input.dart' ('../development/flutter/packages/flutter/lib/src/services/text_input.dart').
 - 'ClipboardStatusNotifier' is from 'package:flutter/src/widgets/text_selection.dart' ('../development/flutter/packages/flutter/lib/src/widgets/text_selection.dart').
    addToolbarButtonIfNeeded(localizations.copyButtonLabel, canCopy, handleCopy);
                                                                     ^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_library-3.0.0/lib/src/selection/extended_text_selection_overlay.dart:339:46: Error: Too few positional arguments: 7 required, 6 given.
        child: selectionControls.buildToolbar(
                                             ^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_library-3.0.0/lib/src/selection/material_text_selection_controls.dart:671:61: Error: Too few positional arguments: 2 required, 1 given.
            handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null,
                                                            ^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_field-3.0.1/lib/src/extended_editable_text.dart:1740:36: Error: Too few positional arguments: 2 required, 1 given.
        ? () => controls.handleCopy(this)
                                   ^
../../.pub-cache/hosted/pub.dartlang.org/extended_text_field-3.0.1/lib/src/extended_editable_text.dart:1850:29: Error: Getter not found: 'obscuringCharacter'.
      text = RenderEditable.obscuringCharacter * text.length;
                            ^^^^^^^^^^^^^^^^^^
@zmtzawqlp
Copy link
Member

use branch v1.12.13

@ptrkaz
Copy link

ptrkaz commented Aug 6, 2020

I am experiencing the same error, event though i followed your advice and used the specific branch:

    git:
      url: https://github.com/fluttercandies/extended_text_field.git
      ref: v1.12.13

@zmtzawqlp
Copy link
Member

sorry for misstake, i will update code for v1.20 later

@jlund24
Copy link

jlund24 commented Aug 6, 2020

@zmtzawqlp any idea of the timeline for the update? (for v1.20 I mean). Just want to know if I should plan on making releases with the prior versions or can count on an update soon

@jlund24
Copy link

jlund24 commented Aug 6, 2020

As general info, this issue occurs for both iOS and Android builds currently if you are on stable version 1.20.

For those needing a quick fix, use flutter downgrade and confirm the change with y.

@zmtzawqlp
Copy link
Member

i don't suggest you are using latest stable version immediately. Thrid-part packages are not updating for it right now. i will do it asap, but not everyone.

@jlund24
Copy link

jlund24 commented Aug 7, 2020

i don't suggest you are using latest stable version immediately. Thrid-part packages are not updating for it right now. i will do it asap, but not everyone.

@zmtzawqlp sounds great. Thanks for responding so quickly and a great package

@zmtzawqlp
Copy link
Member

done, 4.0.0 is ready. https://pub.dev/packages/extended_text_field

@zmtzawqlp
Copy link
Member

reopen if any problem on v1.20

@JordanRoberts1
Copy link

I am seeing this issue using Extended Text version 6.0.4

Launching lib/main.dart on Android SDK built for x86 64 in debug mode...
Running Gradle task 'assembleDevDebug'...
/usr/local/Caskroom/flutter/1.22.4/flutter/.pub-cache/hosted/pub.dartlang.org/extended_text-6.0.4/lib/src/selection/extended_text_selection.dart:135:7: Error: The non-abstract class 'ExtendedTextSelectionState' 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 ExtendedTextSelectionState extends State<ExtendedTextSelection>
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/Caskroom/flutter/1.22.4/flutter/packages/flutter/lib/src/services/text_input.dart:822:8: Context: 'TextSelectionDelegate.userUpdateTextEditingValue' is defined here.
  void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/Caskroom/flutter/1.22.4/flutter/.pub-cache/hosted/pub.dartlang.org/extended_text-6.0.4/lib/src/selection/extended_text_selection.dart:439:8: Error: The method 'ExtendedTextSelectionState.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'.
  void hideToolbar() {
       ^
/usr/local/Caskroom/flutter/1.22.4/flutter/packages/flutter/lib/src/services/text_input.dart:829:8: Context: This is the overridden method ('hideToolbar').
  void hideToolbar([bool hideHandles = true]);
       ^


FAILURE: Build failed with an exception.

* Where:
Script '/usr/local/Caskroom/flutter/1.22.4/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevDebug'.
> Process 'command '/usr/local/Caskroom/flutter/1.22.4/flutter/bin/flutter'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 23s
Exception: Gradle task assembleDevDebug failed with exit code 1

flutter doctor

[✓] Flutter (Channel master, 2.2.0-11.0.pre.136, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.2)
[✓] VS Code (version 1.49.3)
[✓] Connected device (2 available)

! Doctor found issues in 1 category.```

@Niageadon
Copy link

After upgrade from 5.0.4 to 7.0.1 have same error as here #80 (comment).

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 2.3.0-1.0.pre.205, on Microsoft Windows [Version 10.0.19041.928], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[√] IntelliJ IDEA Community Edition (version 2020.2)
[√] IntelliJ IDEA Ultimate Edition (version 2020.2)
[√] Connected device (3 available)

• No issues found!

@zmtzawqlp
Copy link
Member

After upgrade from 5.0.4 to 7.0.1 have same error as here #80 (comment).

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 2.3.0-1.0.pre.205, on Microsoft Windows [Version 10.0.19041.928], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[√] IntelliJ IDEA Community Edition (version 2020.2)
[√] IntelliJ IDEA Ultimate Edition (version 2020.2)
[√] Connected device (3 available)

• No issues found!

we don't support flutter master branch, it always has breaking change at sometime

@cctvdupeng
Copy link

7.0.1 have same error as here

[✓] Flutter (Channel stable, 2.10.3, on macOS 11.6 20G165 darwin-x64, locale zh-Hans-CN)
• Flutter version 2.10.3 at /Users/by/Tools/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (2 周前), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

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

7 participants