π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Minor UI changes
Aman Raj Singh Mourya1c1135a9b288
diff --git a/mobile/lib/ui/tabs/shared/all_quick_links_page.dart b/mobile/lib/ui/tabs/shared/all_quick_links_page.dartindex a031b5d79e..2cb5021889 100644--- a/mobile/lib/ui/tabs/shared/all_quick_links_page.dart+++ b/mobile/lib/ui/tabs/shared/all_quick_links_page.dart@@ -1,8 +1,10 @@import "package:flutter/material.dart";+import "package:flutter/services.dart";import "package:photos/generated/l10n.dart";import "package:photos/models/collection/collection.dart";import "package:photos/models/collection/collection_items.dart";import "package:photos/services/collections_service.dart";+import "package:photos/theme/ente_theme.dart";import "package:photos/ui/actions/collection/collection_sharing_actions.dart";import "package:photos/ui/components/action_sheet_widget.dart";import "package:photos/ui/components/buttons/button_widget.dart";@@ -44,10 +46,11 @@ class _AllQuickLinksPageState extends State<AllQuickLinksPage> {routeToPage(context, page);}- void _toggleQuickLinkSelection(Collection c) {+ Future<void> _toggleQuickLinkSelection(Collection c) async {if (selectedQuickLinks.contains(c)) {selectedQuickLinks.remove(c);} else {+ selectedQuickLinks.isEmpty ? await HapticFeedback.vibrate() : null;selectedQuickLinks.add(c);}setState(() {@@ -112,6 +115,7 @@ class _AllQuickLinksPageState extends State<AllQuickLinksPage> {@overrideWidget build(BuildContext context) {+ final colorScheme = getEnteColorScheme(context);return Scaffold(appBar: AppBar(toolbarHeight: 48,@@ -129,7 +133,10 @@ class _AllQuickLinksPageState extends State<AllQuickLinksPage> {onPressed: () async {await _removeQuickLink();},- icon: const Icon(Icons.remove_circle_outline_outlined),+ icon: Icon(+ Icons.remove_circle_outline_outlined,+ color: colorScheme.blurStrokeBase,+ ),),],),diff --git a/mobile/lib/ui/tabs/shared/quick_link_album_item.dart b/mobile/lib/ui/tabs/shared/quick_link_album_item.dartindex fb5ee2fe65..fac2fb80f4 100644--- a/mobile/lib/ui/tabs/shared/quick_link_album_item.dart+++ b/mobile/lib/ui/tabs/shared/quick_link_album_item.dart@@ -28,7 +28,7 @@ class QuickLinkAlbumItem extends StatelessWidget {decoration: BoxDecoration(border: Border.all(color: selectedQuickLinks.contains(c)- ? colorScheme.primary300+ ? colorScheme.strokeMuted: colorScheme.strokeFainter,),borderRadius: const BorderRadius.all(@@ -134,11 +134,22 @@ class QuickLinkAlbumItem extends StatelessWidget {],),),- const Flexible(+ Flexible(flex: 1,- child: IconButtonWidget(- icon: Icons.chevron_right_outlined,- iconButtonType: IconButtonType.secondary,+ child: AnimatedSwitcher(+ duration: const Duration(milliseconds: 210),+ switchInCurve: Curves.easeOut,+ switchOutCurve: Curves.easeIn,+ child: selectedQuickLinks.contains(c)+ ? IconButtonWidget(+ icon: Icons.check_circle_rounded,+ iconButtonType: IconButtonType.secondary,+ iconColor: colorScheme.blurStrokeBase,+ )+ : const IconButtonWidget(+ icon: Icons.chevron_right_outlined,+ iconButtonType: IconButtonType.secondary,+ ),),),],