Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Fix status bar not adapting it's color with each screen's appbar colour, which is it's background

ashilkna913d2550d4f
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<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: AppBar(
+ backgroundColor: getEnteColorScheme(context).backgroundElevated,
+ ),
+ ),
+
resizeToAvoidBottomInset: false,
),
),