π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
hide app bar for grant permision screen in offline mode
AmanRajSinghMourya7bc9eb7211c7
diff --git a/mobile/apps/photos/lib/ui/tabs/home_widget.dart b/mobile/apps/photos/lib/ui/tabs/home_widget.dartindex 282fe0b9fc..29fe1d704d 100644--- a/mobile/apps/photos/lib/ui/tabs/home_widget.dart+++ b/mobile/apps/photos/lib/ui/tabs/home_widget.dart@@ -714,6 +714,10 @@ class _HomeWidgetState extends State<HomeWidget> {bool isSettingsOpen = false;final enableDrawer = _shouldEnableDrawer();final action = AppLifecycleService.instance.mediaExtensionAction.action;+ final isOnOnlineGrantPermissionScreen =+ Configuration.instance.hasConfiguredAccount() &&+ !isOfflineMode &&+ _shouldShowPermissionWidget();return UserDetailsStateWidget(child: PopScope(canPop: false,@@ -812,42 +816,44 @@ class _HomeWidgetState extends State<HomeWidget> {///To fix the status bar not adapting it's color when switching///screens the have different appbar colours.- appBar: PreferredSize(- preferredSize: const Size.fromHeight(0),- child: ValueListenableBuilder<bool>(- valueListenable: isOnSearchTabNotifier,- builder: (context, isOnSearchTab, _) {- return AnimatedBuilder(- animation: IndexOfStackNotifier(),- builder: (context, _) {- final colorScheme = getEnteColorScheme(context);- final resultsBackground = EnteTheme.isDark(context)- ? const Color.fromRGBO(22, 22, 22, 1)- : colorScheme.backgroundElevated2;- final isSearchResults =- isOnSearchTab && IndexOfStackNotifier().index == 1;- final isOnLandingPage =- !Configuration.instance.hasConfiguredAccount() &&- !isOfflineMode &&- !widget.startWithoutAccount;- final isOnOnlineGrantPermissionScreen =- Configuration.instance.hasConfiguredAccount() &&- !isOfflineMode &&- _shouldShowPermissionWidget();- return AppBar(- backgroundColor: isOnLandingPage- ? colorScheme.greenBase- : isSearchResults- ? resultsBackground- : isOnOnlineGrantPermissionScreen- ? colorScheme.backgroundColour- : colorScheme.backgroundBase,- );- },- );- },- ),- ),+ appBar: isOnOnlineGrantPermissionScreen+ ? null+ : PreferredSize(+ preferredSize: const Size.fromHeight(0),+ child: ValueListenableBuilder<bool>(+ valueListenable: isOnSearchTabNotifier,+ builder: (context, isOnSearchTab, _) {+ return AnimatedBuilder(+ animation: IndexOfStackNotifier(),+ builder: (context, _) {+ final colorScheme = getEnteColorScheme(context);+ final resultsBackground = EnteTheme.isDark(context)+ ? const Color.fromRGBO(22, 22, 22, 1)+ : colorScheme.backgroundElevated2;+ final isSearchResults = isOnSearchTab &&+ IndexOfStackNotifier().index == 1;+ final isOnLandingPage =+ !Configuration.instance.hasConfiguredAccount() &&+ !isOfflineMode &&+ !widget.startWithoutAccount;+ final isOnOnlineGrantPermissionScreen =+ Configuration.instance.hasConfiguredAccount() &&+ !isOfflineMode &&+ _shouldShowPermissionWidget();+ return AppBar(+ backgroundColor: isOnLandingPage+ ? colorScheme.greenBase+ : isSearchResults+ ? resultsBackground+ : isOnOnlineGrantPermissionScreen+ ? colorScheme.backgroundColour+ : colorScheme.backgroundBase,+ );+ },+ );+ },+ ),+ ),resizeToAvoidBottomInset: false,),),