π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][auth]: Show auto lock feature only on mobile
ashilkn878d22fd4a26
diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart b/auth/lib/ui/settings/lock_screen/lock_screen_options.dartindex 2bbc3750ac..71bb539509 100644--- a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart+++ b/auth/lib/ui/settings/lock_screen/lock_screen_options.dart@@ -272,35 +272,42 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {const SizedBox(height: 24,),- MenuItemWidget(- captionedTextWidget: CaptionedTextWidget(- title: context.l10n.autoLock,- subTitle: _formatTime(- Duration(- milliseconds:- autoLockTimeInMilliseconds,- ),- ),- ),- surfaceExecutionStates: false,- alignCaptionedTextToLeft: true,- singleBorderRadius: 8,- menuItemColor: colorTheme.fillFaint,- trailingIconColor: colorTheme.textBase,- onTap: () => _onAutoLock(),- ),- Padding(- padding: const EdgeInsets.only(- top: 14,- left: 14,- right: 12,- ),- child: Text(- context.l10n.autoLockFeatureDescription,- style: textTheme.miniFaint,- textAlign: TextAlign.left,- ),- ),+ PlatformUtil.isMobile()+ ? MenuItemWidget(+ captionedTextWidget:+ CaptionedTextWidget(+ title: context.l10n.autoLock,+ subTitle: _formatTime(+ Duration(+ milliseconds:+ autoLockTimeInMilliseconds,+ ),+ ),+ ),+ surfaceExecutionStates: false,+ alignCaptionedTextToLeft: true,+ singleBorderRadius: 8,+ menuItemColor: colorTheme.fillFaint,+ trailingIconColor:+ colorTheme.textBase,+ onTap: () => _onAutoLock(),+ )+ : const SizedBox.shrink(),+ PlatformUtil.isMobile()+ ? Padding(+ padding: const EdgeInsets.only(+ top: 14,+ left: 14,+ right: 12,+ ),+ child: Text(+ context.l10n+ .autoLockFeatureDescription,+ style: textTheme.miniFaint,+ textAlign: TextAlign.left,+ ),+ )+ : const SizedBox.shrink(),PlatformUtil.isMobile()? Column(crossAxisAlignment:@@ -342,10 +349,10 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {),],)- : Container(),+ : const SizedBox.shrink(),],)- : Container(),+ : const SizedBox.shrink(),),],),