wechat_flutter icon indicating copy to clipboard operation
wechat_flutter copied to clipboard

Flutter 2.6 error

Open lucasjinreal opened this issue 4 years ago • 1 comments
trafficstars

/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
          ^

lucasjinreal avatar Oct 27 '21 13:10 lucasjinreal

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

ahyangnb avatar Nov 08 '21 14:11 ahyangnb