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

Flutter 2.6 error #42

Open
lucasjinreal opened this issue Oct 27, 2021 · 1 comment
Open

Flutter 2.6 error #42

lucasjinreal opened this issue Oct 27, 2021 · 1 comment

Comments

@lucasjinreal
Copy link

/D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text-7.0.0/lib/src/selection/extended_text_selection.dart:135:7: Error: The non-abstract class 'ExtendedTextSelectionState' is missing implementations for these members:
 - 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 ExtendedTextSelectionState extends State<ExtendedTextSelection>
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:985:8: Context: 'TextSelectionDelegate.copySelection' is defined here.
  void copySelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:965:8: Context: 'TextSelectionDelegate.cutSelection' is defined here.
  void cutSelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:973:16: Context: 'TextSelectionDelegate.pasteText' is defined here.
  Future<void> pasteText(SelectionChangedCause cause);
               ^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:979:8: Context: 'TextSelectionDelegate.selectAll' is defined here.
  void selectAll(SelectionChangedCause cause);
       ^^^^^^^^^
/D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-8.0.0/lib/src/extended_editable_text.dart:1175:7: Error: The non-abstract class 'ExtendedEditableTextState' 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 ExtendedEditableTextState extends State<ExtendedEditableText>
      ^^^^^^^^^^^^^^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/autofill.dart:765:8: Context: 'AutofillClient.autofill' is defined here.
  void autofill(TextEditingValue newEditingValue);
       ^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:985:8: Context: 'TextSelectionDelegate.copySelection' is defined here.
  void copySelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:965:8: Context: 'TextSelectionDelegate.cutSelection' is defined here.
  void cutSelection(SelectionChangedCause cause);
       ^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:973:16: Context: 'TextSelectionDelegate.pasteText' is defined here.
  Future<void> pasteText(SelectionChangedCause cause);
               ^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/services/text_input.dart:979:8: Context: 'TextSelectionDelegate.selectAll' is defined here.
  void selectAll(SelectionChangedCause cause);
       ^^^^^^^^^
/D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences-0.5.2+2/lib/shared_preferences.dart:164:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'.
 - 'MethodChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/flutter/packages/flutter/lib/src/services/platform_channel.dart').
Try correcting the name to the name of an existing method, or defining a method named 'setMockMethodCallHandler'.
    _kChannel.setMockMethodCallHandler((MethodCall methodCall) async {
              ^^^^^^^^^^^^^^^^^^^^^^^^
lib/pages/login/login_page.dart:116:19: Error: The method 'WhitelistingTextInputFormatter' isn't defined for the class '_LoginPageState'.
 - '_LoginPageState' is from 'package:wechat_flutter/pages/login/login_page.dart' ('lib/pages/login/login_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'WhitelistingTextInputFormatter'.
                  WhitelistingTextInputFormatter(new RegExp('[0-9]'))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/ui/view/pop_view.dart:40:39: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/D:/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'.
    TextStyle style = theme.textTheme.subhead;
                                      ^^^^^^^
/D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-8.0.0/lib/src/extended_editable_text.dart:2366: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' ('/D:/flutter/packages/flutter/lib/src/services/autofill.dart').
          ? null
          ^
@ahyangnb
Copy link
Member

ahyangnb commented Nov 8, 2021

你再试试,目前flutter2.5已经没问题了,2.6和2.5基本能兼容

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