flutter_dropdown_menu icon indicating copy to clipboard operation
flutter_dropdown_menu copied to clipboard

Error: A value of type '#lib1::TickerFuture' can't be assigned to a variable of type 'dart.async::Future<dart.core::Null>'.

Open guzhiyang opened this issue 6 years ago • 5 comments

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 avatar Nov 01 '18 08:11 guzhiyang

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

guzhiyang avatar Nov 02 '18 01:11 guzhiyang

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 avatar Nov 02 '18 02:11 guzhiyang

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

guzhiyang avatar Nov 07 '18 07:11 guzhiyang

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

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

yohengh avatar Nov 09 '18 11:11 yohengh

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

didyqian avatar Nov 15 '18 03:11 didyqian