我想让这个动画在所有元素的下面重叠显示但是报错了可以给我改后的代码吗最好是还是scrollview否则布局会乱 +7 ms Another exception was thrown RenderPointerListener does not meet its constraints +5 ms Another exception was thrown RenderRepaintBound
Wrap your SingleChildScrollView with a Positioned widget and set its top property to a negative value to make it overlap the other elements. Here's an example:
Positioned( top: -50.0, child: SingleChildScrollView( padding: const EdgeInsets.symmetric(vertical: 50.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [ // your other menu items here ], ), ), )
原文地址: http://www.cveoy.top/t/topic/flXR 著作权归作者所有。请勿转载和采集!