File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
143
143
for (int i = 0 , c = _dropdownAnimations.length; i < c; ++ i) {
144
144
_dropdownAnimations[i].dispose ();
145
145
}
146
-
146
+ _fadeController. dispose ();
147
147
super .dispose ();
148
148
}
149
149
@@ -191,7 +191,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
191
191
Widget build (BuildContext context) {
192
192
List <Widget > list = [];
193
193
194
- print ("build ${new DateTime .now ()}" );
194
+ // print("build ${new DateTime.now()}");
195
195
196
196
if (_show) {
197
197
list.add (
@@ -258,7 +258,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
258
258
259
259
int _activeIndex;
260
260
261
- Future < void > onShow (int index) {
261
+ TickerFuture onShow (int index) {
262
262
//哪一个是要展示的
263
263
264
264
assert (index >= 0 && index < _dropdownAnimations.length);
@@ -282,7 +282,7 @@ class _DropdownMenuState extends DropdownState<DropdownMenu>
282
282
_show = true ;
283
283
});
284
284
285
- return new Future . value ( null );
285
+ return new TickerFuture . complete ( );
286
286
}
287
287
288
288
break ;
You can’t perform that action at this time.
0 commit comments