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: A value of type '#lib1::TickerFuture' can't be assigned to a variable of type 'dart.async::Future<dart.core::Null>'. #7

Open
guzhiyang opened this issue Nov 1, 2018 · 5 comments

Comments

@guzhiyang
Copy link

Compiler message:
file:///Users/xxx/Desktop/FlutterDemo/flutter_dropdown_menu-master/lib/_src/dropdown_menu.dart:271:16: Error: A value of type '#lib1::TickerFuture' can't be assigned to a variable of type 'dart.async::Futuredart.core::Null'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Futuredart.core::Null'.
return onHide();
^
file:///Users/xxx/Desktop/FlutterDemo/flutter_dropdown_menu-master/lib/_src/dropdown_menu.dart:310:12: Error: A value of type '#lib1::TickerFuture' can't be assigned to a variable of type 'dart.async::Futuredart.core::Null'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Futuredart.core::Null'.
return _handleShow(index, true);

@guzhiyang
Copy link
Author

重启电脑之后,再次运行就没问题了,暂不清楚问题出在哪里

@guzhiyang guzhiyang reopened this Nov 2, 2018
@guzhiyang
Copy link
Author

example项目可以跑起来了,但是首页的菜单展不开,点击展开会报错:flutter: Another exception was thrown: 'package:dropdown_menu/_src/dropdown_menu.dart': error: line 272 pos 16: file:///Users/xxx/Desktop/FlutterDemo/flutter_dropdown_menu-master/lib/_src/dropdown_menu.dart:272:16: Error: A value of type '#lib1::TickerFuture' can't be assigned to a variable of type 'dart.async::Futuredart.core::Null'.

@guzhiyang
Copy link
Author

Hi,使用Flutter Dev 0.10.1有这个问题,Beta 0.9.4没有出现问题

yohengh pushed a commit to yohengh/flutter_dropdown_menu that referenced this issue Nov 9, 2018
@yohengh
Copy link

yohengh commented Nov 9, 2018

Hi,使用Flutter Dev 0.10.1有这个问题,Beta 0.9.4没有出现问题

现在beta可以升到 0.10.2了,以前的版本是没问题的,我刚升完版本就出你上面的bug了

@didyqian
Copy link

大佬,更新一下版本呗,升了0.10.2用不了了,不弹出来

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

3 participants