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>
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 ;
You can’t perform that action at this time.
0 commit comments