π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] fixes for onboarding screens for higher font sizes and tablets
Priyanshu Dangare6f0842762ed8
diff --git a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dartindex 17825db6bf..eda20883cd 100644--- a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart+++ b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart@@ -352,23 +352,25 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {child: Column(mainAxisAlignment: MainAxisAlignment.center,children: [+ const SizedBox(height: 32),_buildPermissionsAnimation(context),- const SizedBox(height: 22),+ const Flexible(child: SizedBox(height: 22)),Text(AppLocalizations.of(context,).grantGalleryPermissionTitle,textAlign: .center,+ textScaler: .noScaling,style: TextStyle(fontWeight: .w900,fontFamily: TextStyles.outfitFontFamily,package: TextStyles.fontPackage,- fontSize: 36,+ fontSize: MediaQuery.of(context).size.width * 0.125,height: 1,color: colorScheme.textBase,),),- const SizedBox(height: 24),+ const Flexible(child: SizedBox(height: 24)),Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Text(@@ -382,7 +384,7 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {),),),- const SizedBox(height: 32),+ const Flexible(child: SizedBox(height: 32)),ButtonWidgetV2(buttonType: ButtonTypeV2.neutral,labelText: AppLocalizations.of(@@ -390,9 +392,9 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {).grantPermission,onTap: _onTapOfflineGrantPermission,),- const SizedBox(height: 20),+ const Flexible(child: SizedBox(height: 20)),_buildOfflineTermsAndPrivacy(context),- const SizedBox(height: 24),+ const Flexible(child: SizedBox(height: 24)),],),),diff --git a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart b/mobile/apps/photos/lib/ui/home/landing_page_widget.dartindex 8cbd713980..69e5ac1d0f 100644--- a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart+++ b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart@@ -69,38 +69,47 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {setState(() {});},child: Padding(- padding: const EdgeInsets.all(16),+ padding: const EdgeInsets.symmetric(horizontal: 16),child: Column(crossAxisAlignment: .center,mainAxisAlignment: .center,children: [- if (kDebugMode) _buildDebugLanguageButton(),- _buildOnboardingAnimation(),- Text(- AppLocalizations.of(context).onboardingTitle,- textAlign: .center,- style: const TextStyle(- fontWeight: .w900,- fontFamily: TextStyles.outfitFontFamily,- package: TextStyles.fontPackage,- fontSize: 36,- height: 1,- color: Colors.white,- ),- ),- const Flexible(child: SizedBox(height: 16)),- Padding(- padding: const EdgeInsets.symmetric(horizontal: 32),- child: Text(- AppLocalizations.of(context).onboardingDesc,- textAlign: TextAlign.center,- style: textTheme.body.copyWith(- color: colorScheme.greenLight,- fontSize: 14,- ),+ Flexible(+ child: ListView(+ shrinkWrap: true,+ children: [+ if (kDebugMode) _buildDebugLanguageButton(),+ _buildOnboardingAnimation(),+ Text(+ AppLocalizations.of(context).onboardingTitle,+ textAlign: .center,+ textScaler: TextScaler.noScaling,+ style: TextStyle(+ fontWeight: .w900,+ fontFamily: TextStyles.outfitFontFamily,+ package: TextStyles.fontPackage,++ fontSize: MediaQuery.of(context).size.width * 0.09,+ height: 1,+ color: Colors.white,+ ),+ ),+ const Flexible(child: SizedBox(height: 16)),+ Padding(+ padding: const EdgeInsets.symmetric(horizontal: 32),+ child: Text(+ AppLocalizations.of(context).onboardingDesc,+ textAlign: TextAlign.center,+ style: textTheme.body.copyWith(+ color: colorScheme.greenLight,+ fontSize: 14,+ ),+ ),+ ),+ const Flexible(child: SizedBox(height: 64)),+ ],),),- const Flexible(child: SizedBox(height: 64)),Theme(data: lightComponentTheme,child: ButtonComponent(@@ -148,7 +157,7 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {Widget _buildOnboardingAnimation() {return ConstrainedBox(constraints: BoxConstraints(- maxHeight: MediaQuery.of(context).size.height * 0.35,+ maxHeight: MediaQuery.of(context).size.height * 0.325,),child: rive.RiveWidgetBuilder(fileLoader: _onboardingAnimationLoader,