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

运行报这个错误,请问一下怎么改 #15

Open
haheha opened this issue Mar 19, 2019 · 7 comments
Open

运行报这个错误,请问一下怎么改 #15

haheha opened this issue Mar 19, 2019 · 7 comments

Comments

@haheha
Copy link

haheha commented Mar 19, 2019

Compiler message:
file:///Users/fcn2019/flutter/.pub-cache/hosted/pub.flutter-io.cn/pull_to_refresh-1.1.5/lib/src/internals/indicator_wra
p.dart:105:46: Error: The argument type 'Null Function(Null)' can't be assigned to the parameter type 'dynamic
Function(void)'.
Try changing the type of the parameter, or casting the argument to 'dynamic Function(void)'.
_sizeController.animateTo(minSpace).then((Null val) {
^
Compiler failed on /Users/fcn2019/Downloads/flutter_study-master/lib/main.dart
Error launching application on iPhone XR.

@SycamoreChina
Copy link

碰到了同样的问题,请大神明示~

@Davisjy
Copy link

Davisjy commented May 30, 2019

@SycamoreChina then((Null val) 改成((_))

@SycamoreChina
Copy link

感谢~

@Captain-MK
Copy link

帐号密码是123456吗,登录失败

@Sundayw
Copy link

Sundayw commented Jun 26, 2019

@Davisjy 这then((Null val) 改成((_))个具体在哪里改吗

@Captain-MK
Copy link

直接注释了都没事

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

5 participants