π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: call updateEmail after initState to avoid runtime exception
ashilkn04e45b7908ce
diff --git a/mobile/lib/ui/account/login_page.dart b/mobile/lib/ui/account/login_page.dartindex 28b48a125f..7d79dc8567 100644--- a/mobile/lib/ui/account/login_page.dart+++ b/mobile/lib/ui/account/login_page.dart@@ -29,18 +29,18 @@ class _LoginPageState extends State<LoginPage> {final Logger _logger = Logger('_LoginPageState');@override- void initState() {+ void didChangeDependencies() {+ super.didChangeDependencies();if ((_config.getEmail() ?? '').isNotEmpty) {updateEmail(_config.getEmail()!);} else if (kDebugMode) {updateEmail(const String.fromEnvironment("email"));}- super.initState();}@overrideWidget build(BuildContext context) {- final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;+ final isKeypadOpen = MediaQuery.viewInsetsOf(context).bottom > 100;FloatingActionButtonLocation? fabLocation() {if (isKeypadOpen) {