G:\Projects\flutter\naturec_flutter>flutter run
Launching lib\main.dart on VIE AL10 in debug mode...
/D:/ProgramData/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text-5.0.5/lib/src/selection/extended_text_selection.dart:131: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>
^^^^^^^^^^^^^^^^^^^^^^^^^^
/D:/ProgramData/flutter/packages/flutter/lib/src/services/text_input.dart:822:8: Context: 'TextSelectionDelegate.userUpdateTextEditingValue' is defined here.
void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause);
^^^^^^^^^^^^^^^^^^^^^^^^^^
/D:/ProgramData/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text-5.0.5/lib/src/selection/extended_text_selection.dart:434:8: Error: The method 'ExtendedTextSelectionState.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'.
void hideToolbar() {
^
/D:/ProgramData/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 'D:\ProgramData\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1029
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\ProgramData\flutter\bin\flutter.bat'' 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 18s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 19.0s
Exception: Gradle task assembleDebug failed with exit code 1
报错如下
使用的包是extended_text: ^5.0.5,看这个报错,没太懂是我需要实现这个类,还是包本身缺少了这个类的实现。主要是编辑器环境也没报错