自从升级到flutter 2.5以来,我一直有问题。我也试过flutter clean并重新启动。但问题并没有得到解决。寻求帮助!
我用手机试了一下,但是没有效果。
> flutter run
Launching lib/main.dart on lswlsw in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: SWD9W7PNH2
Running pod install... 3.7s
Running Xcode build...
Xcode build done. 37.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-2.2.0/lib/src/editing/text_selection/mongol_text_s
election_controls.dart:71:10: Error: The method 'MongolTextSelectionControls.buildHandle' has fewer positional arguments
than those of overridden method 'TextSelectionControls.buildHandle'.
Widget buildHandle(
^
../../../../Developer/flutter/packages/flutter/lib/src/widgets/text_selection.dart:123:10: Context: This is the overridden
method ('buildHandle').
Widget buildHandle(BuildContext context, TextSelectionHandleType type, double textLineHeight, [VoidCallback? onTap,
double? startGlyphHeight, double? endGlyphHeight]);
^
../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mongol-2.2.0/lib/src/editing/text_selection/mongol_text_s
election_controls.dart:109:10: Error: The method 'MongolTextSelectionControls.getHandleAnchor' has fewer positional
arguments than those of overridden method 'TextSelectionControls.getHandleAnchor'.
Offset getHandleAnchor(TextSelectionHandleType type, double textLineWidth) {
^
../../../../Developer/flutter/packages/flutter/lib/src/widgets/text_selection.dart:128:10: Context: This is the overridden
method ('getHandleAnchor').
Offset getHandleAnchor(TextSelectionHandleType type, double textLineHeight, [double? startGlyphHeight, double?
endGlyphHeight]);
^
Failed to package /Users/lsw/Desktop/FLUTTER/Geuloo/geuloo.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/lsw/Desktop/FLUTTER/Geuloo/geuloo/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
target 'Toast' from project 'Pods')
Could not build the precompiled application for the device.
Error launching application on lswlsw.
扑动2.5.0•通道稳定•https://github.com/flutter/flutter.git框架•修订4cc385b4b8(4天前)•20121-09-07 23:01:49 -0700发动机•改版f0826da7efTools•Dart 2.14.0
你得到这个问题,因为这个包mongol
你需要去github上的问题部分,并提交一个问题报告,以便他们修复他们的代码与新的Flutter版本一起工作。