我不知道怎么回事...当我使用0.0的静态高度时,AnimatedSize小部件将进行动画处理。但是当我设置topLayoutHeight=MediaQuery.of(context).size.height没有任何反应。这是我的代码:doubletopLayoutHeight=0.0;setHeight(){topLayoutHeight=MediaQuery.of(context).size.height-200;}我的小部件:@overrideWidgetbuild(BuildContextcontext){setHeight();......newAnimatedSize(cu
我不知道怎么回事...当我使用0.0的静态高度时,AnimatedSize小部件将进行动画处理。但是当我设置topLayoutHeight=MediaQuery.of(context).size.height没有任何反应。这是我的代码:doubletopLayoutHeight=0.0;setHeight(){topLayoutHeight=MediaQuery.of(context).size.height-200;}我的小部件:@overrideWidgetbuild(BuildContextcontext){setHeight();......newAnimatedSize(cu