Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter run -> Error: No named parameter with the name 'keyboardDismissBehavior'

Tags:

ios

swift

flutter

when I "flutter run"

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

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')

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

help me thanks

like image 835
QYunFat Avatar asked Jan 22 '21 02:01

QYunFat


3 Answers

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

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

FROM

pull_to_refresh: ^1.6.3

TO

pull_to_refresh: 1.6.3

like image 56
iRedia Ebikade Avatar answered Nov 06 '22 03:11

iRedia Ebikade


Step 1:

Edit file pubspec.yaml

FROM

pull_to_refresh ^1.6.4 or pull_to_refresh ^1.6.3

TO

pull_to_refresh: 1.6.3

Step 2:

  • run flutter clean

  • Edit file pubspec.lock

    pull_to_refresh:

    ...

    version: "1.6.3"

more info: https://github.com/peng8350/flutter_pulltorefresh/issues/424

UPDATE 05.03.2021

For new version flutter 2.0.1 -> You need to upgrade to pull_to_refresh ^1.6.4

like image 7
Simonov Dmitriy Avatar answered Nov 06 '22 03:11

Simonov Dmitriy


Solution: pin point your dependency version to 1.6.3:

pull_to_refresh 1.6.3

see this issue.

The author made a mistake that he released a bugfix that is not suitable for current flutter release build.

like image 3
Linkfting Avatar answered Nov 06 '22 04:11

Linkfting