From 589e87a0bc0a32bdedb857d0728b6d2c0b9e9daf Mon Sep 17 00:00:00 2001 From: Yaros Date: Wed, 4 Sep 2024 14:54:10 +0200 Subject: [PATCH] Made photo location markers more visible --- lib/layouts/home.dart | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/lib/layouts/home.dart b/lib/layouts/home.dart index d401de0..ab37bb6 100644 --- a/lib/layouts/home.dart +++ b/lib/layouts/home.dart @@ -180,11 +180,21 @@ class _HomeLayoutState extends State with TickerProviderStateMixin { for (var photoLocation in waypoints) { _photoMarkers.add(Marker( point: photoLocation, + height: 25, alignment: Alignment.center, rotate: false, - child: Center( - child: Icon(Icons.photo_camera, - size: 25, color: Theme.of(context).colorScheme.tertiary), + child: Container( + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primary.withOpacity(0.7), + borderRadius: BorderRadius.circular(10)), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(Icons.photo_camera, + size: 25, + color: Theme.of(context).colorScheme.onPrimaryContainer), + ], + ), ))); } listenables.flightLine = Polyline( @@ -241,11 +251,11 @@ class _HomeLayoutState extends State with TickerProviderStateMixin { borderColor: Theme.of(context).colorScheme.primary, borderStrokeWidth: 3), ]), - if (listenables.showCameras) - MarkerLayer(markers: _photoMarkers), PolylineLayer(polylines: [ listenables.flightLine ?? Polyline(points: []) ]), + if (listenables.showCameras) + MarkerLayer(markers: _photoMarkers), DragMarkers(markers: [ for (var point in listenables.polygon) DragMarker(