Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No named parameter with the name 'keyboardDismissBehavior'. #427

Closed
AnadaYuKi opened this issue Jan 20, 2021 · 9 comments
Closed

Comments

@AnadaYuKi
Copy link

when use “flutter build ios --release --no-codesign” , it will throw a error message "Error: No named parameter with the name 'keyboardDismissBehavior'."

@zakaio
Copy link

zakaio commented Jan 20, 2021

Same for the android debug build. Appeared suddenly.

@zakaio
Copy link

zakaio commented Jan 20, 2021

started from 1.6.4,
use pull_to_refresh: 1.6.3 without ^ for fast fix

@goo2018
Copy link

goo2018 commented Jan 21, 2021

started from 1.6.4,
use pull_to_refresh: 1.6.3 without ^ for fast fix

but:

    A ScrollPositionWithSingleContext was used after being disposed.
    Once you have called dispose() on a
    ScrollPositionWithSingleContext, it can no longer be used.
    
    When the exception was thrown, this was the stack:
    #0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:117:9)
    #1      ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:123:6)
    #2      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:217:12)
    #3      ScrollPosition.notifyListeners (package:flutter/src/widgets/scroll_position.dart:889:11)
    #4      ScrollPosition.forcePixels (package:flutter/src/widgets/scroll_position.dart:367:5)
    #5      ScrollPositionWithSingleContext.jumpTo (package:flutter/src/widgets/s

@felixgabler
Copy link

copy of #424 . Look for solutions there. It supposedly is due to incompatibility with flutter changes. 1.6.4 will work with the next stable release of the flutter sdk. Until then, use 1.6.3.

@hejunbinlan
Copy link

../lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
也碰到同样的问题

@flutterq
Copy link

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

@shinewanna
Copy link

shinewanna commented Feb 2, 2021

started from 1.6.4,
use pull_to_refresh: 1.6.3 without ^ for fast fix

but:

    A ScrollPositionWithSingleContext was used after being disposed.
    Once you have called dispose() on a
    ScrollPositionWithSingleContext, it can no longer be used.
    
    When the exception was thrown, this was the stack:
    #0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:117:9)
    #1      ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:123:6)
    #2      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:217:12)
    #3      ScrollPosition.notifyListeners (package:flutter/src/widgets/scroll_position.dart:889:11)
    #4      ScrollPosition.forcePixels (package:flutter/src/widgets/scroll_position.dart:367:5)
    #5      ScrollPositionWithSingleContext.jumpTo (package:flutter/src/widgets/s

How you solved on this i'm facing on this?@goo2018

@jeromekai
Copy link

v1.6.4 发现问题
./flutter/.pub-cache/hosted/pub.flutter-io.cn/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
keyboardDismissBehavior:
^^^^^^^^^^^^^^^^^^^^^^^
../../../flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
const CustomScrollView({

请问为修复了吗?

@ramsthapit
Copy link

use pull_to_refresh: 1.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants