Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Show home tab app bar only on home tab

ashilkn4ad9089f9007
diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart
index dd31847c3e..6eed6c17b1 100644
--- a/mobile/lib/ui/tabs/home_widget.dart
+++ b/mobile/lib/ui/tabs/home_widget.dart
@@ -360,10 +360,7 @@ class _HomeWidgetState extends State<HomeWidget> {
},
),
),
- appBar: const PreferredSize(
- preferredSize: const Size.fromHeight(kToolbarHeight),
- child: HomeAppBarWidget(),
- ),
+
resizeToAvoidBottomInset: false,
),
),
@@ -424,12 +421,25 @@ class _HomeWidgetState extends State<HomeWidget> {
children: [
_showShowBackupHook
? const StartBackupHookWidget(headerWidget: _headerWidget)
- : HomeGalleryWidget(
- header: _headerWidget,
- footer: const SizedBox(
- height: 160,
- ),
- selectedFiles: _selectedFiles,
+ : Stack(
+ children: [
+ const Positioned(
+ top: 0,
+ left: 0,
+ right: 0,
+ child: HomeAppBarWidget(),
+ ),
+ Padding(
+ padding: const EdgeInsets.only(top: kToolbarHeight),
+ child: HomeGalleryWidget(
+ header: _headerWidget,
+ footer: const SizedBox(
+ height: 160,
+ ),
+ selectedFiles: _selectedFiles,
+ ),
+ ),
+ ],
),
_userCollectionsTab,
_sharedCollectionTab,