作者:非机动车地了 | 来源:互联网 | 2023-08-21 06:13
当我尝试在flutter中使用textformfield时,发生此错误。有人可以帮助我吗?
下面是返回的错误:
D/ViewRootImpl(28004): ViewPostImeInputStage processpointer 0
D/ViewRootImpl(28004): ViewPostImeInputStage processpointer 1
D/ViewRootImpl(28004): MSG_RESIZED: ci=Rect(0,72 - 0,885) vi=Rect(0,885) or=1
在我的UI代码中有一个TextFormField的示例
Padding(
padding: EdgeInsets.only(left: 50,right: 50),child: TextFormField(
controller: loginController,validator: (value){
if (value.isEmpty){
return "Os campos não podem ser vazios";
}
return null;
},textInputaction: TextInputaction.next,keyboardType: TextInputType.emailaddress,focusnode: _emailFocus,onFieldSubmitted: (term){
_fieldFocusChange(BuildContext context,Focusnode currentFocus,Focusnode nextFocus) {
currentFocus.unfocus();
FocusScope.of(context).requestFocus(nextFocus);
}
_fieldFocusChange(context,_emailFocus,_nameFocus);
},decoration: InputDecoration(
labelText: "Email",labelStyle: TextStyle(
color: Colors.white,fontSize: 20.0
),focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.white,width: 1)
),enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.white,width: 1)
)
),style: TextStyle(
color: Colors.white,)
),),
请帮帮我