Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

add a location pin on the LocationRecommendation widget

ashilkn06911d039586
diff --git a/lib/ui/viewer/search_tab/locations_section.dart b/lib/ui/viewer/search_tab/locations_section.dart
index 6d4e709746..b27c0d7efe 100644
--- a/lib/ui/viewer/search_tab/locations_section.dart
+++ b/lib/ui/viewer/search_tab/locations_section.dart
@@ -11,6 +11,7 @@ import "package:photos/models/search/generic_search_result.dart";
import "package:photos/models/search/recent_searches.dart";
import "package:photos/models/search/search_types.dart";
import "package:photos/services/search_service.dart";
+import "package:photos/theme/colors.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/map/enable_map.dart";
import "package:photos/ui/map/map_screen.dart";
@@ -314,6 +315,43 @@ class LocationRecommendation extends StatelessWidget {
),
),
),
+ Positioned(
+ left: 8,
+ top: 8,
+ child: Stack(
+ clipBehavior: Clip.none,
+ alignment: Alignment.center,
+ children: [
+ ClipRRect(
+ borderRadius: const BorderRadius.all(Radius.circular(8)),
+ child: BackdropFilter(
+ filter: ImageFilter.blur(sigmaX: 2, sigmaY: 2),
+ child: Container(
+ color: const Color.fromRGBO(0, 0, 0, 0.6),
+ width: 15,
+ height: 15,
+ ),
+ ),
+ ),
+ Container(
+ width: 16,
+ height: 16,
+ decoration: BoxDecoration(
+ shape: BoxShape.circle,
+ border: Border.all(
+ width: 0.5,
+ color: strokeSolidMutedLight,
+ ),
+ ),
+ ),
+ const Icon(
+ Icons.location_on_sharp,
+ color: Colors.white,
+ size: 11,
+ ),
+ ],
+ ),
+ ),
],
),
),