Questions tagged «flutter-layout»

Flutter中的布局-Google的UI工具包,用于从单个代码库构建针对移动设备,Web和桌面的本机编译应用程序,指的是用于构建UI的称为小部件的类,用于布局和UI元素。布局可以采用单子布局或多子布局小部件的形式。将此标签用于Flutter中使用的所有类型的布局小部件。

1
DraggableScrollableSheet中的Listview不能滚动显示
我被设计成非常重的嵌套设计,如下所示,当我的列表扩展listview时,问题似乎并没有滚动,这是什么原因,底部表单被扩展了,但是如果我按触摸“营业时间”文本会开始滚动,但是当它向上时,我无法向下滑动。 _showDialog(BuildContext context) { print("_showDialog"); showModalBottomSheet( context: context, isScrollControlled: true, builder: (BuildContext context) { return DraggableScrollableSheet( expand: false, builder: (context, scrollController) { return Container( child: Stack( children: <Widget>[ Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Align( alignment: Alignment.topCenter, child: Container( margin: EdgeInsets.symmetric(vertical: 8), height: 8.0, width: 70.0, decoration: BoxDecoration( color: Colors.grey[400], borderRadius: …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.