diff --git a/lib/_src/dropdown_menu.dart b/lib/_src/dropdown_menu.dart index 98f7101..8a81c3c 100644 --- a/lib/_src/dropdown_menu.dart +++ b/lib/_src/dropdown_menu.dart @@ -143,7 +143,7 @@ class _DropdownMenuState extends DropdownState for (int i = 0, c = _dropdownAnimations.length; i < c; ++i) { _dropdownAnimations[i].dispose(); } - + _fadeController.dispose(); super.dispose(); } @@ -191,7 +191,7 @@ class _DropdownMenuState extends DropdownState Widget build(BuildContext context) { List list = []; - print("build ${new DateTime.now()}"); + //print("build ${new DateTime.now()}"); if (_show) { list.add( @@ -258,7 +258,7 @@ class _DropdownMenuState extends DropdownState int _activeIndex; - Future onShow(int index) { + TickerFuture onShow(int index) { //哪一个是要展示的 assert(index >= 0 && index < _dropdownAnimations.length); @@ -282,7 +282,7 @@ class _DropdownMenuState extends DropdownState _show = true; }); - return new Future.value(null); + return new TickerFuture.complete(); } break;