Skip to content

Commit

Permalink
Fix #184
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbendebiene committed Jul 7, 2023
1 parent b937732 commit 506c1d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/widgets/osm_element_layer/osm_element_marker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ class _OsmElementMarkerState extends State<OsmElementMarker> 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,
Expand Down

0 comments on commit 506c1d4

Please sign in to comment.