小智 1
我还想在我的应用程序中禁用键盘中的表情符号按钮,因此,我通过在 TextField 中添加 KeyboardType: TextInputType.visiblePassword 来实现此目的。
TextField(
keyboardType: TextInputType.visiblePassword,
textInputAction: TextInputAction.done,
showCursor: true,
style: Theme.of(context).textTheme.bodyText1,
decoration: InputDecoration(border: InputBorder.none)
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2535 次 |
| 最近记录: |