mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(mobile): autofill (#11591)
This commit is contained in:
parent
94da5942bd
commit
c83df2686a
1 changed files with 7 additions and 2 deletions
|
@ -2,6 +2,7 @@ import 'dart:io';
|
||||||
import 'package:auto_route/auto_route.dart';
|
import 'package:auto_route/auto_route.dart';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart' hide Store;
|
import 'package:flutter_hooks/flutter_hooks.dart' hide Store;
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
|
@ -55,7 +56,7 @@ class LoginForm extends HookConsumerWidget {
|
||||||
)..repeat();
|
)..repeat();
|
||||||
final serverInfo = ref.watch(serverInfoProvider);
|
final serverInfo = ref.watch(serverInfoProvider);
|
||||||
final warningMessage = useState<String?>(null);
|
final warningMessage = useState<String?>(null);
|
||||||
|
final loginFormKey = GlobalKey<FormState>();
|
||||||
final ValueNotifier<String?> serverEndpoint = useState<String?>(null);
|
final ValueNotifier<String?> serverEndpoint = useState<String?>(null);
|
||||||
|
|
||||||
checkVersionMismatch() async {
|
checkVersionMismatch() async {
|
||||||
|
@ -175,6 +176,7 @@ class LoginForm extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
login() async {
|
login() async {
|
||||||
|
TextInput.finishAutofillContext();
|
||||||
// Start loading
|
// Start loading
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
|
|
||||||
|
@ -478,7 +480,10 @@ class LoginForm extends HookConsumerWidget {
|
||||||
|
|
||||||
// Note: This used to have an AnimatedSwitcher, but was removed
|
// Note: This used to have an AnimatedSwitcher, but was removed
|
||||||
// because of https://github.com/flutter/flutter/issues/120874
|
// because of https://github.com/flutter/flutter/issues/120874
|
||||||
serverSelectionOrLogin,
|
Form(
|
||||||
|
key: loginFormKey,
|
||||||
|
child: serverSelectionOrLogin,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue