颤动运行->错误:没有名为"keyboardDismissBehavior"的命名参数 [英] flutter run -> Error: No named parameter with the name 'keyboardDismissBehavior'

查看:127
本文介绍了颤动运行->错误:没有名为"keyboardDismissBehavior"的命名参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我奔跑"时

无法构建iOS应用Xcode构建错误输出:↳**建立失败**

Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED **

Xcode的输出:↳../../../Desktop/development/flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9:错误:名称中没有命名参数'keyboardDismissBehavior'.keyboardDismissBehavior:^^^^^^^^^^^^^^^^^^^^^^^^../../../Desktop/development/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9:上下文:找到了该候选者,但是参数不匹配.const CustomScrollView({^^^^^^^^^^^^^^^^^

Xcode's output: ↳ ../../../Desktop/development/flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6 .4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'. keyboardDismissBehavior: ^^^^^^^^^^^^^^^^^^^^^^^ ../../../Desktop/development/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588: 9: Context: Found this candidate, but the arguments don't match. const CustomScrollView({ ^^^^^^^^^^^^^^^^

Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
but the range of supported deployment target versions is 9.0 to 14.2.99. (in target
'shared_preferences' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
but the range of supported deployment target versions is 9.0 to 14.2.99. (in target
'path_provider' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
but the range of supported deployment target versions is 9.0 to 14.2.99. (in target
'flutter_boost' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
but the range of supported deployment target versions is 9.0 to 14.2.99. (in target 'FMDB'
from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
but the range of supported deployment target versions is 9.0 to 14.2.99. (in target
'Flutter' from project 'Pods')

无法为模拟器构建应用程序.在iPhone 12上启动应用程序时出错

Could not build the application for the simulator. Error launching application on iPhone 12

帮我谢谢

推荐答案

pull_to_refresh 插件与当前版本的flutter不兼容.

pull_to_refresh plugin is not compatible with the current version of flutter.

解决方案: pubspec.yaml 文件上的 pull_to_refresh 插件从 1.6.4 ^ 1.6.3 更改为 1.6.3 并运行 flutter pub get

Solution: Change your pull_to_refresh plugin on your pubspec.yaml file from 1.6.4 or ^1.6.3 to 1.6.3 and run flutter pub get

pull_to_refresh:^ 1.6.3

TO

pull_to_refresh:1.6.3

这篇关于颤动运行->错误:没有名为"keyboardDismissBehavior"的命名参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆