Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][locker] Center Locker empty state

AmanRajSinghMouryadd622ba510fd
diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dart
index 0dd8829304..7231410494 100644
--- a/mobile/apps/locker/lib/ui/pages/home_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart
@@ -631,7 +631,7 @@ class _HomePageState extends UploaderPageState<HomePage>
),
],
),
- floatingActionButton: isSearchActive
+ floatingActionButton: isSearchActive || isHomeEmptyState
? null
: ListenableBuilder(
listenable: _selectedFiles,
@@ -702,13 +702,15 @@ class _HomePageState extends UploaderPageState<HomePage>
final scrollBottomPadding = MediaQuery.of(context).padding.bottom + 120;
return _recentFiles.isEmpty
- ? Center(
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: HomeEmptyStateWidget(
- isLoading: _isSyncing,
- onSetupLegacy: () => openLegacyPage(context),
- onSaveToLocker: _openSavePage,
+ ? SizedBox.expand(
+ child: Center(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 24),
+ child: HomeEmptyStateWidget(
+ isLoading: _isSyncing,
+ onSetupLegacy: () => openLegacyPage(context),
+ onSaveToLocker: _openSavePage,
+ ),
),
),
)