best-flutter / flutter_dropdown_menu

A dropdown menu for Flutter.
MIT License
264 stars 71 forks source link

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 5 years ago

guzhiyang commented 5 years ago

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::Future'. Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Future'. 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::Future'. Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Future'. return _handleShow(index, true);

guzhiyang commented 5 years ago

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

guzhiyang commented 5 years ago

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::Future'.

guzhiyang commented 5 years ago

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

yohengh commented 5 years ago

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

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

didyqian commented 5 years ago

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