我收到此错误,renderFlex在底部溢出了100像素

问题描述 投票:0回答:4

如下所示,我尝试添加TextFormFiled,并在添加它后出现错误renderFlex overFlowed:

 Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Text('Rate the order !', style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),),
        SizedBox(height: 10,),
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: List.generate(starCount, (index)=>buildStar(context, index)),
        ),
        Padding(
          padding: EdgeInsets.all(10),
          child: Form(child:TextFormField(
            decoration: (InputDecoration(
              labelText: 'add your notes'
            )),
            textInputAction: TextInputAction.done,
          )),
        )
      ],
    );
flutter dart widget render provider
4个回答
0
投票
Column作为childSingleChildScrollView

0
投票
效果很好,请查看。参见下面的代码:

0
投票
为列或行内的列表提供固定高度。使用容器或任何其他小部件

0
投票
将列包装在

SingleChildScrollView

© www.soinside.com 2019 - 2024. All rights reserved.