【问题标题】:Incorrect use of ParentDataWidgetParentDataWidget 的错误使用
【发布时间】: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


    【解决方案1】:

    问题是 SingleChildScrollView 或 ListView 内部的扩展小部件

    【讨论】:

      猜你喜欢
      • 2021-03-16
      • 2019-11-12
      • 2021-04-22
      • 2023-02-22
      • 2021-07-19
      • 2021-01-20
      • 2020-11-18
      • 2021-04-14
      • 2021-07-10
      相关资源
      最近更新 更多