ParentDataWidget 的错误使用

Incorrect use of ParentDataWidget

我得到了 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(),
                     ],
               ),
            ),
          ),
        ),
      ),
    );

问题出在 SingleChildScrollView 或 ListView 中的扩展小部件