如何使用 flutter 禁用键盘中的表情符号按钮

kri*_*aji 6 dart flutter

我想禁用 Android 键盘上的表情符号按钮。

TT

小智 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)