From 6917e049835171c1f3c3ba866423f98ae24824ef Mon Sep 17 00:00:00 2001 From: yongheng_huang Date: Wed, 31 Oct 2018 19:48:10 +0800 Subject: [PATCH 1/3] remove debug print --- lib/_src/dropdown_menu.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_src/dropdown_menu.dart b/lib/_src/dropdown_menu.dart index 46b81fe..a997af4 100644 --- a/lib/_src/dropdown_menu.dart +++ b/lib/_src/dropdown_menu.dart @@ -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( From deea0df9c8fc40b161c4a1953c7f39bf3c09a55f Mon Sep 17 00:00:00 2001 From: yongheng_huang Date: Fri, 9 Nov 2018 18:23:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=ACflutter=E4=B8=8B=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/_src/dropdown_menu.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_src/dropdown_menu.dart b/lib/_src/dropdown_menu.dart index a997af4..74e6b08 100644 --- a/lib/_src/dropdown_menu.dart +++ b/lib/_src/dropdown_menu.dart @@ -258,7 +258,7 @@ class _DropdownMenuState extends DropdownState int _activeIndex; - Future onShow(int index) { + Future onShow(int index) { //哪一个是要展示的 assert(index >= 0 && index < _dropdownAnimations.length); From d8c2a81296be93a5e8ed478bb17152bce78628d6 Mon Sep 17 00:00:00 2001 From: yongheng_huang Date: Fri, 9 Nov 2018 18:46:30 +0800 Subject: [PATCH 3/3] fix issue #7 --- lib/_src/dropdown_menu.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_src/dropdown_menu.dart b/lib/_src/dropdown_menu.dart index 74e6b08..1cd077a 100644 --- a/lib/_src/dropdown_menu.dart +++ b/lib/_src/dropdown_menu.dart @@ -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;