π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Add import from gallery button to initial setup screen
Prateek Sunaled07bd38f98c
diff --git a/mobile/apps/auth/lib/ui/home/home_empty_state.dart b/mobile/apps/auth/lib/ui/home/home_empty_state.dartindex eeff42de7c..17e83d1153 100644--- a/mobile/apps/auth/lib/ui/home/home_empty_state.dart+++ b/mobile/apps/auth/lib/ui/home/home_empty_state.dart@@ -9,11 +9,13 @@ import 'package:logging/logging.dart';class HomeEmptyStateWidget extends StatelessWidget {final VoidCallback? onScanTap;final VoidCallback? onManuallySetupTap;+ final VoidCallback? onImportFromGalleryTap;const HomeEmptyStateWidget({super.key,required this.onScanTap,required this.onManuallySetupTap,+ required this.onImportFromGalleryTap,});@override@@ -58,6 +60,21 @@ class HomeEmptyStateWidget extends StatelessWidget {),),),+ if (PlatformUtil.isMobile()) const SizedBox(height: 18),+ if (PlatformUtil.isMobile())+ SizedBox(+ width: 400,+ child: OutlinedButton(+ onPressed: onImportFromGalleryTap,+ style: OutlinedButton.styleFrom(+ padding: const EdgeInsets.symmetric(vertical: 8),+ ),+ child: Text(+ l10n.importFromGallery,+ textAlign: TextAlign.center,+ ),+ ),+ ),const SizedBox(height: 18),SizedBox(width: 400,diff --git a/mobile/apps/auth/lib/ui/home_page.dart b/mobile/apps/auth/lib/ui/home_page.dartindex 35bea16135..e58b4f07d7 100644--- a/mobile/apps/auth/lib/ui/home_page.dart+++ b/mobile/apps/auth/lib/ui/home_page.dart@@ -545,6 +545,7 @@ class _HomePageState extends State<HomePage> {return HomeEmptyStateWidget(onScanTap: _redirectToScannerPage,onManuallySetupTap: _redirectToManualEntryPage,+ onImportFromGalleryTap: _importFromGalleryNative,);} else {final anyCodeHasError =