Skip to content

Commit

Permalink
fix issue best-flutter#6,7,16
Browse files Browse the repository at this point in the history
  • Loading branch information
jweiw99 authored Feb 4, 2020
1 parent 2fff987 commit caa5d4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/_src/dropdown_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
for (int i = 0, c = _dropdownAnimations.length; i < c; ++i) {
_dropdownAnimations[i].dispose();
}

_fadeController.dispose();
super.dispose();
}

Expand Down Expand Up @@ -191,7 +191,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
Widget build(BuildContext context) {
List<Widget> list = [];

print("build ${new DateTime.now()}");
//print("build ${new DateTime.now()}");

if (_show) {
list.add(
Expand Down Expand Up @@ -258,7 +258,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>

int _activeIndex;

Future<void> onShow(int index) {
TickerFuture onShow(int index) {
//哪一个是要展示的

assert(index >= 0 && index < _dropdownAnimations.length);
Expand All @@ -282,7 +282,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
_show = true;
});

return new Future.value(null);
return new TickerFuture.complete();
}

break;
Expand Down

0 comments on commit caa5d4b

Please sign in to comment.