Skip to content

Commit

Permalink
Fix paused on init (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecreatorormaybenot authored Oct 30, 2021
1 parent 5dc1fc4 commit 391a8c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions funvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.6+2

* Fixed `paused` value not being respected on init.

## 0.1.6+1

* Improved documentation for container pausing behavior.
Expand Down
4 changes: 3 additions & 1 deletion funvas/lib/src/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class _FunvasContainerState extends State<FunvasContainer>
super.initState();

_time = ValueNotifier(0);
_ticker = createTicker(_update)..start();
_ticker = createTicker(_update)
..muted = widget.paused
..start();
}

@override
Expand Down
2 changes: 1 addition & 1 deletion funvas/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >2-
Package for creating canvas animations based on time and math functions.
Fun + canvas -> funvas :)
version: 0.1.6+1
version: 0.1.6+2
homepage: https://github.com/creativecreatorormaybenot/funvas/tree/main/funvas

environment:
Expand Down

0 comments on commit 391a8c3

Please sign in to comment.