From a14a8b0cfbe828cbc0e4dbf677de7f35d2b77215 Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Tue, 30 Jul 2024 14:40:32 +0530 Subject: [PATCH] [mob][auth] Lockscreen fixes --- .../ui/settings/lock_screen/lock_screen_options.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart b/auth/lib/ui/settings/lock_screen/lock_screen_options.dart index e0e71cc03f..2bbc3750ac 100644 --- a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart +++ b/auth/lib/ui/settings/lock_screen/lock_screen_options.dart @@ -103,8 +103,10 @@ class _LockScreenOptionsState extends State { AppLock.of(context)!.setEnabled(!appLock); await _configuration.setSystemLockScreen(!appLock); await _lockscreenSetting.removePinAndPassword(); - if (appLock == false) { - await _lockscreenSetting.setHideAppContent(true); + if (PlatformUtil.isMobile()) { + if (appLock == false) { + await _lockscreenSetting.setHideAppContent(true); + } } setState(() { _initializeSettings(); @@ -168,6 +170,7 @@ class _LockScreenOptionsState extends State { mainAxisSize: MainAxisSize.min, children: [ Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ MenuItemWidget( captionedTextWidget: CaptionedTextWidget( @@ -308,10 +311,10 @@ class _LockScreenOptionsState extends State { captionedTextWidget: CaptionedTextWidget( title: - context.l10n.deviceLock, + context.l10n.hideContent, ), alignCaptionedTextToLeft: true, - isTopBorderRadiusRemoved: true, + singleBorderRadius: 8, menuItemColor: colorTheme.fillFaint, trailingWidget: