Flutter increase height of TextFormField

前端 未结 6 1172
情书的邮戳
情书的邮戳 2021-02-19 02:48

I am creating a Flutter app. i made the design like this.

My TextFormField form field for email and password heights are small. I want it to be the same size of the bu

6条回答
  •  野的像风
    2021-02-19 03:12

    You can change the height by changing the minLines value just try this

                   TextFormField(
                               keyboardType: TextInputType.multiline,
                               controller: _opTextController,
                               decoration: InputDecoration(
                                   isDense: true,
                                 border: OutlineInputBorder(
                                   borderSide: BorderSide(color: Colors.black)
                                 )
    
                               ),
                               maxLines: 5,
                               minLines: 3,
                               // controller: cpfcontroller,
                             )
    

提交回复
热议问题