From caa5d4b54fc25f5fe99119223ee111a0dfdd62a2 Mon Sep 17 00:00:00 2001 From: Lelouch99 <37395860+jweiw99@users.noreply.github.com> Date: Tue, 4 Feb 2020 16:37:47 +0800 Subject: [PATCH] fix issue #6,7,16 --- lib/_src/dropdown_menu.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;