Skip to content

Commit fe1896e

Browse files
author
xuyingjun
committed
ReadMe
1 parent 7efb029 commit fe1896e

File tree

3 files changed

+71
-79
lines changed

3 files changed

+71
-79
lines changed

.idea/workspace.xml

Lines changed: 62 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
```yaml
1414
dependencies:
15-
flutter_animation_set: ^0.0.1
15+
flutter_animation_set: ^0.0.2
1616
```
1717
1818
## ⚡ Use Animation Set Widget
@@ -332,11 +332,16 @@ animatorSet: [
332332
serialList: [
333333
SX(from: 0.0, to: 1.0, curve: Curves.easeInOut),
334334
SY(from: 0.0, to: 1.0, curve: Curves.easeInOut),
335+
O(from: 0.5, to: 0.0, delay: 1000, curve: Curves.easeInOut),
335336
],
336337
),
337338
],
338339
```
339340

341+
done
342+
343+
<img src="https://github.com/efoxTeam/flutter-animation-set/raw/master/image/gif/7.gif" width="90px">
344+
340345
**2、延时动画**
341346

342347
对真正做动画的时候处理delay属性
@@ -368,19 +373,8 @@ Widget makeLine(int delay) {
368373
height: 5,
369374
),
370375
animatorSet: [
371-
TY(
372-
from: 0.0,
373-
to: 5.0,
374-
duration: 400,
375-
delay: delay,
376-
curve: Curves.fastOutSlowIn,
377-
),
378-
TY(
379-
from: 5.0,
380-
to: 0.0,
381-
duration: 400,
382-
curve: Curves.fastOutSlowIn,
383-
),
376+
TY(from: 0.0, to: 5.0, duration: 400, delay: delay, curve: Curves.fastOutSlowIn,),
377+
TY(from: 5.0, to: 0.0, duration: 400, curve: Curves.fastOutSlowIn,),
384378
],
385379
);
386380
}

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
path: ".."
4848
relative: true
4949
source: path
50-
version: "0.0.1"
50+
version: "0.0.2"
5151
flutter_test:
5252
dependency: "direct dev"
5353
description: flutter

0 commit comments

Comments
 (0)