Skip to content

Commit

Permalink
Made photo location markers more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
YarosMallorca committed Sep 4, 2024
1 parent e31e3fc commit 589e87a
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions lib/layouts/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,21 @@ class _HomeLayoutState extends State<HomeLayout> 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(
Expand Down Expand Up @@ -241,11 +251,11 @@ class _HomeLayoutState extends State<HomeLayout> 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(
Expand Down

0 comments on commit 589e87a

Please sign in to comment.