Skip to content

Commit

Permalink
Merge branch 'fix/dispose-running-animations'
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed Nov 25, 2024
2 parents 1689e4d + 284ae86 commit d969728
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.8.0

* Fix: Stop and dispose all running animations by @TesteurManiak in https://github.com/TesteurManiak/flutter_map_animations/pull/45
* Feat: Added `AnimatedMapController.stopAnimations()` method and `cancelPreviousAnimations` properties by @TesteurManiak in https://github.com/TesteurManiak/flutter_map_animations/pull/45


**Full Changelog**: https://github.com/TesteurManiak/flutter_map_animations/compare/0.7.1...0.8.0

## 0.7.1

* 35 animation duration for animateto by @TesteurManiak in https://github.com/TesteurManiak/flutter_map_animations/pull/36
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ class _MyWidgetState extends State<MyWidget> with TickerProviderStateMixin {
}
```

You can specify the animation `duration` and `curve`:
You can specify globally the animation's `duration`, `curve` and if previous animations should be stopped with `cancelPreviousAnimations`:

```dart
AnimatedMapController(
vsync: this,
duration: const Duration(milliseconds: 500),
curve: Curves.easeInOut,
cancelPreviousAnimations: true, // Default to false
);
```

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_map_animations
description: Animation utilities for markers and controls of the flutter_map package.
version: 0.7.1
version: 0.8.0
homepage: https://github.com/TesteurManiak/flutter_map_animations
repository: https://github.com/TesteurManiak/flutter_map_animations
issue_tracker: https://github.com/TesteurManiak/flutter_map_animations/issues
Expand Down

0 comments on commit d969728

Please sign in to comment.