showModalBottomSheet( context: context, shape: const RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: Radius.circular(15), topRight: Radius.circular(15), ), ), isScrollControlled: true, builder: (BuildContext context) { return ConstrainedBox( constraints: const BoxConstraints(maxHeight: double.infinity), child: Column( mainAxisSize: MainAxisSize.min, children: [ Flexible( child: ListView( shrinkWrap: true, padding: const EdgeInsets.all(20.0), children: const [ Text("data"), Text("data"), Text("data"), Text("data"), Text("data"), Text("data"), ])) ], ), ); }, );
标签:适应,const,Text,children,showModalBottomSheet,context,data,Flutter From: https://www.cnblogs.com/letleon/p/16908233.html