当我按下按钮时,TextFormField 将被聚焦并出现键盘。如何解决这个问题?
代码如下:
TextFormField(
controller: code,
focusNode: codeFocus,
decoration: InputDecoration(
labelText: 'verify code',
prefixIcon: Icon(Icons.sms),
suffixIcon: FlatButton(
onPressed:(){}
child: Text('send sms'),
textTheme: ButtonTextTheme.primary,
),
),
keyboardType: TextInputType.number,
),
focusNode: codeFocus,
)
Run Code Online (Sandbox Code Playgroud) 我将实体UserInfoEntity、变量名称从“moblie”更改为“mobile”,然后重新启动服务器。当我查看表格时,我发现表格没有删除“移动”列。这是我的实体变化;
由此;
@Entity
@Table(name = "pe_userinfo")
public class UserInfoEntity {
private String moblie;
}
Run Code Online (Sandbox Code Playgroud)
对此;
@Entity
@Table(name = "pe_userinfo")
public class UserInfoEntity {
private String mobile;
}
Run Code Online (Sandbox Code Playgroud)