Skip to content

Commit 18d01c9

Browse files
committed
Add a SmartAnimatedWidget example
1 parent e805cda commit 18d01c9

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,29 @@ For more information on configMap, please see [more details](https://github.com/
7979

8080

8181

82+
83+
8284
## Example
8385

86+
```
87+
import 'package:flutter/material.dart';
88+
import 'package:animated_interpolation/animated_interpolation.dart';
89+
SmartAnimatedWidget(
90+
configMap: fadeInDown,
91+
autoPlay: true,
92+
child: Container(
93+
margin: const EdgeInsets.symmetric(vertical: 8, horizontal: 15),
94+
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 15),
95+
width: double.infinity,
96+
color: Colors.red.shade300,
97+
child: Center(
98+
child: Text(text),
99+
),
100+
),
101+
)
102+
103+
```
104+
84105
``` dart
85106
import 'package:flutter/material.dart';
86107
import 'package:animated_interpolation/animated_interpolation.dart';

README_zh-CN.md

+19
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,25 @@
8181

8282
## 示例
8383

84+
```
85+
import 'package:flutter/material.dart';
86+
import 'package:animated_interpolation/animated_interpolation.dart';
87+
SmartAnimatedWidget(
88+
configMap: fadeInDown,
89+
autoPlay: true,
90+
child: Container(
91+
margin: const EdgeInsets.symmetric(vertical: 8, horizontal: 15),
92+
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 15),
93+
width: double.infinity,
94+
color: Colors.red.shade300,
95+
child: Center(
96+
child: Text(text),
97+
),
98+
),
99+
)
100+
101+
```
102+
84103
``` dart
85104
import 'package:flutter/material.dart';
86105
import 'package:animated_interpolation/animated_interpolation.dart';

0 commit comments

Comments
 (0)