Skip to content

Commit 0920e99

Browse files
committed
add SmartAnimatedWidget
1 parent 1718d39 commit 0920e99

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ To use this plugin, add `animated_interpolation` as a [dependency in your pubspe
3131
| extrapolateLeft |NO| ExtrapolateType.extend | It will extrapolate the curve beyond the given left range |
3232
| extrapolateRight |NO| ExtrapolateType.extend | It will extrapolate the curve beyond the given right range |
3333

34+
### SmartAnimatedWidget
35+
36+
#### constructor
37+
38+
| Parameter |Required | Default | Description |
39+
| :------------ |:--------:|:---------------:| :-----|
40+
| from | No | NULL | It's similar to the ```from``` for keyframes in css3,eg: ```AnimatedConfig(opacity: 0)``` |
41+
| to |No| NULL | It's similar to the ```to``` for keyframes in css3 ,eg:```AnimatedConfig(opacity:1)```|
42+
| configMap |NO| NULL | Similar to keyframes in css3,eg:```{0:AnimatedConfig(opacity:0,translateX: 200),0.2:AnimatedConfig(opacity:1,translateX:100),1:AnimatedConfig(opacity:1,translateX:0)}``` |
43+
| curve |NO| ```_Linear._()``` | Set the input/output animation curve |
44+
| duration |NO| Duration(seconds: 1) | Animation execution time |
45+
| autoPlay |NO| false | Whether to automatically animate |
46+
47+
3448

3549

3650
## Example

0 commit comments

Comments
 (0)