π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Update icons and search spacing for consistency (#10738)
Aman Raj4f9a4b45665c
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dartindex 798c10ebc1..106fff53e3 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart@@ -464,7 +464,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {actions.add(_buildPopupMenuAction<AlbumPopupAction>(tooltip: strings.sort,- icon: const HugeIcon(icon: HugeIcons.strokeRoundedSorting01),+ icon: const HugeIcon(icon: HugeIcons.strokeRoundedFilterHorizontal),optionsBuilder: () {return [EntePopupMenuOption(diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dartindex 66a6e050f6..c282d7ebc8 100644--- a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart@@ -998,7 +998,7 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {return IconButtonComponent(variant: IconButtonComponentVariant.primary,shouldSurfaceExecutionStates: false,- icon: Icon(Icons.sort_rounded, color: colorScheme.textMuted),+ icon: const HugeIcon(icon: HugeIcons.strokeRoundedFilterHorizontal),onTapDown: (details) async {final l10n = AppLocalizations.of(context);const sortKeys = PeopleSortKey.values;diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dartindex a9ed7bda53..4eee5f123e 100644--- a/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart@@ -1,4 +1,5 @@import "dart:async";+import "dart:math" as math;import "package:collection/collection.dart";import "package:ente_components/ente_components.dart";@@ -124,7 +125,12 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {@overrideWidget build(BuildContext context) {const horizontalEdgePadding = 16.0;+ const minimumBottomClearance = 72.0;final cacheExtent = widget.sectionType == SectionType.album ? 400.0 : null;+ final bottomContentPadding = math.max(+ 20 + MediaQuery.viewPaddingOf(context).bottom,+ minimumBottomClearance,+ );return Scaffold(body: FutureBuilder<List<SearchResult>>(future: sectionData,@@ -175,9 +181,11 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {if (totalItems > 0) {slivers.add(SliverPadding(- padding: const EdgeInsets.symmetric(- vertical: 20,- horizontal: horizontalEdgePadding,+ padding: EdgeInsets.fromLTRB(+ horizontalEdgePadding,+ 20,+ horizontalEdgePadding,+ bottomContentPadding,),sliver: SliverList(delegate: SliverChildBuilderDelegate((context, index) {diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart b/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dartindex b9792a5154..e88f8a64ce 100644--- a/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart+++ b/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart@@ -78,9 +78,7 @@ class SearchableItemWidget extends StatelessWidget {? const SizedBox.shrink(): Text(searchResult.name(),- style: searchResult.type() == ResultType.locationSuggestion- ? textTheme.bodyFaint- : textTheme.body,+ style: textTheme.body,overflow: TextOverflow.ellipsis,),subtitle: FutureBuilder<int>(diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dartindex 1929f87d1c..b52d9c8d3b 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart@@ -56,7 +56,7 @@ class ContactsLoadingSection extends StatelessWidget {@overrideWidget build(BuildContext context) {return const Padding(- padding: EdgeInsets.symmetric(vertical: 8),+ padding: EdgeInsets.only(top: 8, bottom: 24),child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [@@ -124,7 +124,7 @@ class _ContactsSectionState extends State<ContactsSection> {if (_contactSearchResults.isEmpty) {final textTheme = getEnteTextTheme(context);return Padding(- padding: const EdgeInsets.only(left: 12, right: 8),+ padding: const EdgeInsets.only(left: 12, right: 8, bottom: 24),child: Row(children: [Expanded(@@ -164,7 +164,7 @@ class _ContactsSectionState extends State<ContactsSection> {const ContactCTA(),];return Padding(- padding: const EdgeInsets.symmetric(vertical: 8),+ padding: const EdgeInsets.only(top: 8, bottom: 24),child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/file_type_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/file_type_section.dartindex 3b0eb94257..dbafb8fe60 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/file_type_section.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/file_type_section.dart@@ -24,7 +24,7 @@ class FileTypeSection extends StatelessWidget {if (!hasAnySearchableFiles) {final textTheme = getEnteTextTheme(context);return Padding(- padding: const EdgeInsets.only(left: 12, right: 8),+ padding: const EdgeInsets.only(left: 12, right: 8, bottom: 24),child: Row(children: [Expanded(@@ -59,7 +59,7 @@ class FileTypeSection extends StatelessWidget {final tiles = _previewTiles(context);return Padding(- padding: const EdgeInsets.symmetric(vertical: 8),+ padding: const EdgeInsets.only(top: 8, bottom: 24),child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/locations_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/locations_section.dartindex 04024ecc4b..6858113203 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/locations_section.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/locations_section.dart@@ -78,7 +78,7 @@ class _LocationsSectionState extends State<LocationsSection> {if (_locationsSearchResults.isEmpty) {final textTheme = getEnteTextTheme(context);return Padding(- padding: const EdgeInsets.only(left: 12, right: 8),+ padding: const EdgeInsets.only(left: 12, right: 8, bottom: 24),child: Row(children: [Expanded(@@ -118,7 +118,7 @@ class _LocationsSectionState extends State<LocationsSection> {const RepaintBoundary(child: LocationCTA()),];return Padding(- padding: const EdgeInsets.symmetric(vertical: 8),+ padding: const EdgeInsets.only(top: 8, bottom: 24),child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [@@ -149,7 +149,7 @@ class _LocationsSectionState extends State<LocationsSection> {class LocationRecommendation extends StatelessWidget {static const width = 100.0;- static const height = 123.0;+ static const height = 124.0;static const thumbnailBorderWidth = 1.0;static const outerCornerRadius = 12.0;static const cornerSmoothing = 1.0;@@ -239,9 +239,6 @@ class LocationRecommendation extends StatelessWidget {): const NoThumbnailWidget(),),- Container(- color: Colors.black.withValues(alpha: 0.2),- ),],),Padding(@@ -317,9 +314,7 @@ class LocationRecommendation extends StatelessWidget {children: [Text(locationSearchResult.name(),- style: enteTextTheme.mini.copyWith(- color: Colors.white,- ),+ style: enteTextTheme.small,maxLines: 1,overflow: TextOverflow.ellipsis,textAlign: TextAlign.center,diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dartindex 1c793536f3..b5108ce365 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart@@ -275,7 +275,7 @@ class _RitualsDiscoverySection extends StatelessWidget {return const SizedBox.shrink();}return const Padding(- padding: EdgeInsets.symmetric(vertical: 8),+ padding: EdgeInsets.only(top: 8, bottom: 24),child: RitualsBanner(),);}diff --git a/mobile/apps/photos/lib/ui/wrapped/wrapped_discovery_section.dart b/mobile/apps/photos/lib/ui/wrapped/wrapped_discovery_section.dartindex 250f13813e..a436de6e22 100644--- a/mobile/apps/photos/lib/ui/wrapped/wrapped_discovery_section.dart+++ b/mobile/apps/photos/lib/ui/wrapped/wrapped_discovery_section.dart@@ -21,7 +21,7 @@ class WrappedDiscoverySection extends StatelessWidget {const double bannerHeight = 164;return Padding(- padding: const EdgeInsets.only(top: 16, bottom: 4),+ padding: const EdgeInsets.only(top: 16, bottom: 24),child: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) {final double baseWidth =