π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refactor layout spacing in LegacyCollectionsTrashWidget and DrawerPage for consistency
AmanRajSinghMourya118d0d7179ca
diff --git a/mobile/apps/locker/lib/ui/components/legacy_collections_trash_widget.dart b/mobile/apps/locker/lib/ui/components/legacy_collections_trash_widget.dartindex 3dd54dacce..962d13bda7 100644--- a/mobile/apps/locker/lib/ui/components/legacy_collections_trash_widget.dart+++ b/mobile/apps/locker/lib/ui/components/legacy_collections_trash_widget.dart@@ -13,21 +13,20 @@ class LegacyCollectionsTrashWidget extends StatelessWidget {@overrideWidget build(BuildContext context) {- return const Padding(- padding: EdgeInsets.symmetric(vertical: 16.0),- child: Column(- children: [- _LegacyItem(),- SizedBox(height: 8),- Row(- children: [- Expanded(child: _CollectionsItem()),- SizedBox(width: 8),- Expanded(child: _TrashItem()),- ],- ),- ],- ),+ const sectionSpacing = SizedBox(height: 8);++ return const Column(+ children: [+ _LegacyItem(),+ sectionSpacing,+ Row(+ children: [+ Expanded(child: _CollectionsItem()),+ SizedBox(width: 8),+ Expanded(child: _TrashItem()),+ ],+ ),+ ],);}}diff --git a/mobile/apps/locker/lib/ui/drawer/drawer_page.dart b/mobile/apps/locker/lib/ui/drawer/drawer_page.dartindex f4fe8be56f..cf4f3a43de 100644--- a/mobile/apps/locker/lib/ui/drawer/drawer_page.dart+++ b/mobile/apps/locker/lib/ui/drawer/drawer_page.dart@@ -84,9 +84,9 @@ class DrawerPage extends StatelessWidget {),);contents.addAll([- const SizedBox(height: 12),+ sectionSpacing,const UsageCardWidget(),- const SizedBox(height: 12),+ const SizedBox(height: 16),const LegacyCollectionsTrashWidget(),sectionSpacing,]);diff --git a/mobile/apps/locker/lib/ui/drawer/settings_widgets.dart b/mobile/apps/locker/lib/ui/drawer/settings_widgets.dartindex f18308e7cf..18f3984995 100644--- a/mobile/apps/locker/lib/ui/drawer/settings_widgets.dart+++ b/mobile/apps/locker/lib/ui/drawer/settings_widgets.dart@@ -1,9 +1,7 @@import "dart:io";-import "package:ente_ui/theme/ente_theme.dart";import "package:flutter/foundation.dart";import "package:flutter/material.dart";-import "package:locker/l10n/l10n.dart";import "package:locker/ui/drawer/about_section_widget.dart";import "package:locker/ui/drawer/account_section_widget.dart";import "package:locker/ui/drawer/general_section_widget.dart";@@ -25,15 +23,6 @@ class SettingsWidgets extends StatelessWidget {const sectionSpacing = SizedBox(height: 8);final List<Widget> contents = [];- contents.addAll([- Text(- context.l10n.settings,- style: getEnteTextTheme(context).bodyMuted,- textAlign: TextAlign.left,- ),- const SizedBox(height: 12),- ]);-if (hasLoggedIn) {contents.addAll([const AccountSectionWidget(),