Update login_form.dart

This commit is contained in:
ihmcsm 2026-08-14 23:21:48 +10:00 committed by GitHub
parent 12a19c9ce6
commit 6d159e2757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,6 +76,8 @@ class LoginForm extends HookConsumerWidget {
final warningMessage = useState<String?>(null); final warningMessage = useState<String?>(null);
final loginFormKey = GlobalKey<FormState>(); final loginFormKey = GlobalKey<FormState>();
final ValueNotifier<String?> serverEndpoint = useState<String?>(null); final ValueNotifier<String?> serverEndpoint = useState<String?>(null);
final SmartDashesType smartDashesType;
final SmartQuotesType smartQuotesType;
Future<void> checkVersionMismatch() async { Future<void> checkVersionMismatch() async {
try { try {
@ -508,8 +510,6 @@ class LoginForm extends HookConsumerWidget {
focusNode: passwordFocusNode, focusNode: passwordFocusNode,
smartDashesType: SmartDashesType.disabled, smartDashesType: SmartDashesType.disabled,
smartQuotesType: SmartQuotesType.disabled, smartQuotesType: SmartQuotesType.disabled,
autocorrect: false,
enableSuggestions: false,
label: context.t.password, label: context.t.password,
hintText: context.t.login_form_password_hint, hintText: context.t.login_form_password_hint,
keyboardAction: TextInputAction.go, keyboardAction: TextInputAction.go,