/// Optimize for passwords that are visible to the user.
///
/// Requests a keyboard with ready access to both letters and numbers.
static const TextInputType visiblePassword = TextInputType._(7);
Run Code Online (Sandbox Code Playgroud)
上面的代码部分来自text_input.dart文件。因此请尝试以下操作。它可能会起作用,但不确定:
TextField(
keyboardType: TextInputType.visiblePassword
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2993 次 |
| 最近记录: |