【发布时间】:2020-11-19 18:18:16
【问题描述】:
我得到不正确使用 ParentDataWidget。问题
我尝试在 SingleChildScrollView 中使用 Column 但不起作用,我将其替换为 ListView
这是我的代码
return Scaffold(
body: Directionality(
textDirection: TextDirection.rtl,
child: WillPopScope(
onWillPop: pressBack,
child: SizedBox(
width: MediaQuery.of(context).size.width,
// height: 0.9* MediaQuery.of(context).size.height,
child: Padding(
padding: const EdgeInsets.all(12.0),
child: ListView(
children: <Widget>[
moreCoding(),
],
),
),
),
),
),
);
【问题讨论】:
标签: flutter listview dart widget singlechildscrollview