close

[Solved] Error: No named parameter with the name ‘keyboardDismissBehavior’

Hello Guys, how are you all? Hope you all are fine. You might face Error: No named parameter with the name ‘keyboardDismissBehavior’ this error in a flutter. here I come with all possible solutions for this error.

we are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How No named parameter with the name ‘keyboardDismissBehavior’ this Error Occurs ?

When I tap on Run Button in my android studio in my macOS to build iOS app in my Simulator I Got Failed to build iOS app Error output from Xcode build.

Here is my Stacktrack. Could not build the application for the simulator. Error launching application on iPhone 11.

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

How to solve Error: No named parameter with the name ‘keyboardDismissBehavior’ ?

  1. How to solve Error: No named parameter with the name 'keyboardDismissBehavior' ?

    to solve Error: No named parameter with the name 'keyboardDismissBehavior' This error is caused due to pull_to_refresh plugin that you are using in your flutter app is not compatible with the current version of flutter. The solution is just downgraded your plugin version.

  2. Error: No named parameter with the name 'keyboardDismissBehavior

    to solve Error: No named parameter with the name 'keyboardDismissBehavior' This error is caused due to pull_to_refresh plugin that you are using in your flutter app is not compatible with the current version of flutter. The solution is just downgraded your plugin version.

Solution 1

This error is cause due to pull_to_refresh plugin that you are using in your flutter app that is not compatible with the current version of flutter. The solution is just to downgrade your plugin version. Just Follow below step to solve this error.

  1. Edit file pubspec.yaml
  2. Change This Line pull_to_refresh ^1.6.4 or pull_to_refresh ^1.6.3
  3. Replace with pull_to_refresh 1.6.3
  4. run flutter clean
  5. flutter run

That’s It. This Solution is worked For Me.

Solution 2

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 OR pull_to_refresh: ^1.6.3

TO

pull_to_refresh: 1.6.3

So it’s all About All possible solutions. Hope this above all solution helped you a lot. Comment below Your thoughts and your queries. Comment Below on your suggestion.

Also Read

Leave a Comment

%d bloggers like this: