Skip to content

Commit caa5d4b

Browse files
authored
fix issue best-flutter#6,7,16
1 parent 2fff987 commit caa5d4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/_src/dropdown_menu.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
143143
for (int i = 0, c = _dropdownAnimations.length; i < c; ++i) {
144144
_dropdownAnimations[i].dispose();
145145
}
146-
146+
_fadeController.dispose();
147147
super.dispose();
148148
}
149149

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

194-
print("build ${new DateTime.now()}");
194+
//print("build ${new DateTime.now()}");
195195

196196
if (_show) {
197197
list.add(
@@ -258,7 +258,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
258258

259259
int _activeIndex;
260260

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

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

285-
return new Future.value(null);
285+
return new TickerFuture.complete();
286286
}
287287

288288
break;

0 commit comments

Comments
 (0)