如下所示,我尝试添加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,
)),
)
],
);
Column
作为child
的SingleChildScrollView
SingleChildScrollView