File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.1.6+3
2
+
3
+ * Added diagnostics property for ` paused ` .
4
+
1
5
## 0.1.6+2
2
6
3
7
* Fixed ` paused ` value not being respected on init.
Original file line number Diff line number Diff line change
1
+ import 'package:flutter/foundation.dart' ;
1
2
import 'package:flutter/material.dart' ;
2
3
import 'package:flutter/scheduler.dart' ;
3
4
import 'package:funvas/src/painter.dart' ;
@@ -41,6 +42,17 @@ class FunvasContainer extends StatefulWidget {
41
42
42
43
@override
43
44
_FunvasContainerState createState () => _FunvasContainerState ();
45
+
46
+ @override
47
+ void debugFillProperties (DiagnosticPropertiesBuilder properties) {
48
+ super .debugFillProperties (properties);
49
+
50
+ properties.add (DiagnosticsProperty (
51
+ 'paused' ,
52
+ paused,
53
+ description: 'Whether the animation ticker is muted or not.' ,
54
+ ));
55
+ }
44
56
}
45
57
46
58
class _FunvasContainerState extends State <FunvasContainer >
@@ -54,8 +66,8 @@ class _FunvasContainerState extends State<FunvasContainer>
54
66
55
67
_time = ValueNotifier (0 );
56
68
_ticker = createTicker (_update)
57
- ..muted = widget.paused
58
- ..start () ;
69
+ ..start ()
70
+ ..muted = widget.paused ;
59
71
}
60
72
61
73
@override
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: >2-
3
3
Package for creating canvas animations based on time and math functions.
4
4
5
5
Fun + canvas -> funvas :)
6
- version : 0.1.6+2
6
+ version : 0.1.6+3
7
7
homepage : https://github.com/creativecreatorormaybenot/funvas/tree/main/funvas
8
8
9
9
environment :
You can’t perform that action at this time.
0 commit comments