π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
use the 'earth' icon for GoToMap widget when locations are empty
ashilknbe11b398d345
diff --git a/lib/ui/viewer/search/result/go_to_map_widget.dart b/lib/ui/viewer/search/result/go_to_map_widget.dartindex fb449d824d..e408417a86 100644--- a/lib/ui/viewer/search/result/go_to_map_widget.dart+++ b/lib/ui/viewer/search/result/go_to_map_widget.dart@@ -32,30 +32,31 @@ class GoToMapWidget extends StatelessWidget {);}},- child: SizedBox(- width: width,- child: Padding(- padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 10),- child: Column(- mainAxisSize: MainAxisSize.min,- children: [- Image.asset(- "assets/map.png",+ child: Padding(+ padding: const EdgeInsets.fromLTRB(8, 14, 8, 0),+ child: Column(+ mainAxisSize: MainAxisSize.min,+ mainAxisAlignment: MainAxisAlignment.start,+ children: [+ Transform.scale(+ scale: 1.2,+ child: Image.asset(+ "assets/map_world.png",width: 64,height: 64,),- const SizedBox(- height: 10,- ),- Text(- S.of(context).yourMap,- maxLines: 2,- textAlign: TextAlign.center,- overflow: TextOverflow.ellipsis,- style: getEnteTextTheme(context).mini,- ),- ],- ),+ ),+ const SizedBox(+ height: 11.5,+ ),+ Text(+ S.of(context).yourMap,+ maxLines: 2,+ textAlign: TextAlign.center,+ overflow: TextOverflow.ellipsis,+ style: getEnteTextTheme(context).mini,+ ),+ ],),),);diff --git a/lib/ui/viewer/search_tab/locations_section.dart b/lib/ui/viewer/search_tab/locations_section.dartindex b27c0d7efe..6eb31c5ec4 100644--- a/lib/ui/viewer/search_tab/locations_section.dart+++ b/lib/ui/viewer/search_tab/locations_section.dart@@ -17,6 +17,7 @@ import "package:photos/ui/map/enable_map.dart";import "package:photos/ui/map/map_screen.dart";import "package:photos/ui/viewer/file/no_thumbnail_widget.dart";import "package:photos/ui/viewer/file/thumbnail_widget.dart";+import "package:photos/ui/viewer/search/result/go_to_map_widget.dart";import "package:photos/ui/viewer/search/result/search_result_page.dart";import "package:photos/ui/viewer/search/search_section_cta.dart";import "package:photos/ui/viewer/search_tab/section_header.dart";@@ -96,6 +97,7 @@ class _LocationsSectionState extends State<LocationsSection> {),const SizedBox(width: 8),const SearchSectionEmptyCTAIcon(SectionType.location),+ const GoToMapWidget(),],),);