π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][drawer] restore SecuritySectionWidget in settings
AmanRajSinghMourya598e6017c11c
diff --git a/mobile/apps/locker/lib/ui/drawer/drawer_page.dart b/mobile/apps/locker/lib/ui/drawer/drawer_page.dartindex e92e98d022..9e4558dfe5 100644--- a/mobile/apps/locker/lib/ui/drawer/drawer_page.dart+++ b/mobile/apps/locker/lib/ui/drawer/drawer_page.dart@@ -1,19 +1,13 @@-import "dart:io";-import "package:ente_accounts/services/user_service.dart";import "package:ente_ui/theme/colors.dart";import "package:ente_ui/theme/ente_theme.dart";-import "package:flutter/foundation.dart";import "package:flutter/material.dart";import "package:locker/services/configuration.dart";import "package:locker/ui/components/legacy_collections_trash_widget.dart";import "package:locker/ui/components/usage_card_widget.dart";-import "package:locker/ui/drawer/account_section_widget.dart";import "package:locker/ui/drawer/app_version_widget.dart";import "package:locker/ui/drawer/drawer_title_bar_widget.dart";-import "package:locker/ui/drawer/security_section_widget.dart";import "package:locker/ui/drawer/settings_widgets.dart";-import "package:locker/ui/drawer/theme_switch_widget.dart";class DrawerPage extends StatelessWidget {final ValueNotifier<String?> emailNotifier;@@ -74,25 +68,8 @@ class DrawerPage extends StatelessWidget {const UsageCardWidget(),const SizedBox(height: 12),const LegacyCollectionsTrashWidget(),- const SizedBox(height: 12),- const AccountSectionWidget(),sectionSpacing,]);-- contents.addAll([- const SecuritySectionWidget(),- sectionSpacing,- ]);-- if (Platform.isAndroid ||- Platform.isWindows ||- Platform.isLinux ||- kDebugMode) {- contents.addAll([- const ThemeSwitchWidget(),- sectionSpacing,- ]);- }}contents.addAll([diff --git a/mobile/apps/locker/lib/ui/drawer/settings_widgets.dart b/mobile/apps/locker/lib/ui/drawer/settings_widgets.dartindex 12995d89f8..1134c6b795 100644--- a/mobile/apps/locker/lib/ui/drawer/settings_widgets.dart+++ b/mobile/apps/locker/lib/ui/drawer/settings_widgets.dart@@ -6,6 +6,7 @@ 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/security_section_widget.dart";import "package:locker/ui/drawer/social_section_widget.dart";import "package:locker/ui/drawer/support_section_widget.dart";import "package:locker/ui/drawer/theme_switch_widget.dart";@@ -38,11 +39,10 @@ class SettingsWidgets extends StatelessWidget {sectionSpacing,]);- // TODO(aman): Re-add after app-lock is implemented w/ Locker designs- // contents.addAll([- // const SecuritySectionWidget(),- // sectionSpacing,- // ]);+ contents.addAll([+ const SecuritySectionWidget(),+ sectionSpacing,+ ]);if (Platform.isAndroid ||Platform.isWindows ||