From a913d2550d4f6361b2db45a728f79373eded91d0 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Fri, 23 Aug 2024 17:43:56 +0530 Subject: [PATCH] [mob][photos] Fix status bar not adapting it's color with each screen's appbar colour, which is it's background --- mobile/lib/ui/tabs/home_widget.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart index 6eed6c17b1..bd5f2da610 100644 --- a/mobile/lib/ui/tabs/home_widget.dart +++ b/mobile/lib/ui/tabs/home_widget.dart @@ -361,6 +361,15 @@ class _HomeWidgetState extends State { ), ), + ///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: AppBar( + backgroundColor: getEnteColorScheme(context).backgroundElevated, + ), + ), + resizeToAvoidBottomInset: false, ), ),