π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix center align of home empty state
ashilkn020784f602fb
diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dartindex 2a9bab4879..5830f4815b 100644--- a/mobile/apps/locker/lib/ui/pages/home_page.dart+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart@@ -620,40 +620,42 @@ class _HomePageState extends UploaderPageState<HomePage>final scrollBottomPadding =MediaQuery.of(context).padding.bottom + 120.0;- return SingleChildScrollView(+ return Padding(padding: EdgeInsets.only(left: 16.0,right: 16.0,top: 32.0,bottom: scrollBottomPadding,),- physics: const AlwaysScrollableScrollPhysics(),- child: ConstrainedBox(- constraints: BoxConstraints(- minHeight: constraints.maxHeight,- ),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- _buildRecentsSection(),- ],- ),- ),+ child: _recentFiles.isEmpty+ ? const Center(+ child: Padding(+ padding: EdgeInsets.symmetric(horizontal: 16.0),+ child: HomeEmptyStateWidget(),+ ),+ )+ : SingleChildScrollView(+ physics: const AlwaysScrollableScrollPhysics(),+ child: ConstrainedBox(+ constraints: BoxConstraints(+ minHeight: constraints.maxHeight,+ ),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ RecentsSectionWidget(+ collections: _filterOutUncategorized(_collections),+ recentFiles: _recentFiles,+ ),+ ],+ ),+ ),+ ),);},);}- Widget _buildRecentsSection() {- if (_recentFiles.isEmpty) {- return const HomeEmptyStateWidget();- }- return RecentsSectionWidget(- collections: _filterOutUncategorized(_collections),- recentFiles: _recentFiles,- );- }-void _openSavePage() {showSaveBottomSheet(context,