From 506c1d47c5052c347cd31c584d65a5e32b111389 Mon Sep 17 00:00:00 2001 From: Robin Thomas Date: Fri, 7 Jul 2023 15:57:21 +0200 Subject: [PATCH] Fix #184 --- lib/widgets/osm_element_layer/osm_element_marker.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/widgets/osm_element_layer/osm_element_marker.dart b/lib/widgets/osm_element_layer/osm_element_marker.dart index e8e14856..27b1ffe7 100644 --- a/lib/widgets/osm_element_layer/osm_element_marker.dart +++ b/lib/widgets/osm_element_layer/osm_element_marker.dart @@ -31,7 +31,11 @@ class _OsmElementMarkerState extends State with SingleTickerPr @override void initState() { super.initState(); - _controller = AnimationController(vsync: this, duration: const Duration(milliseconds: 600)); + _controller = AnimationController( + vsync: this, + value: widget.active ? 1 : 0, + duration: const Duration(milliseconds: 600), + ); _animation = CurvedAnimation( parent: _controller, curve: Curves.easeInOutCubicEmphasized,