增加剪切板控制

This commit is contained in:
jyuesong
2022-01-20 16:13:08 +08:00
parent d4e8dec698
commit f389f32d32
10 changed files with 103 additions and 5 deletions

View File

@@ -92,6 +92,7 @@ class _UpdatePasswordPageState extends ConsumerState<UpdatePasswordPage> {
),
),
TextField(
enableInteractiveSelection: !getIt<UserInfoViewModel>().forbidReadClipBoarded,
focusNode: focusNode,
controller: _nameController,
decoration: const InputDecoration(
@@ -122,6 +123,7 @@ class _UpdatePasswordPageState extends ConsumerState<UpdatePasswordPage> {
),
),
TextField(
enableInteractiveSelection: !getIt<UserInfoViewModel>().forbidReadClipBoarded,
obscureText: true,
controller: _passwordController,
maxLines: 1,
@@ -153,6 +155,7 @@ class _UpdatePasswordPageState extends ConsumerState<UpdatePasswordPage> {
),
),
TextField(
enableInteractiveSelection: false,
obscureText: true,
maxLines: 1,
controller: _passwordAgainController,