Skip to content

Commit c44d396

Browse files
moshe5745imaNNeo
authored andcommitted
Update docs - animation param names
1 parent 2f3e6ee commit c44d396

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

repo_files/documentations/handle_animations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ We handle all animations Implicitly, This is power of the [ImplicitlyAnimatedWid
88

99

1010
##### Properties
11-
You can change the [Duration](https://api.flutter.dev/flutter/dart-core/Duration-class.html) and [Curve](https://api.flutter.dev/flutter/animation/Curves-class.html) of animation using `swapAnimationDuration` and `swapAnimationCurve` properties respectively.
11+
You can change the [Duration](https://api.flutter.dev/flutter/dart-core/Duration-class.html) and [Curve](https://api.flutter.dev/flutter/animation/Curves-class.html) of animation using `duration` and `curve` properties respectively.
1212

1313
```dart
1414
LineChart(
15-
swapAnimationDuration: Duration(milliseconds: 150),
16-
swapAnimationCurve: Curves.linear,
15+
duration: Duration(milliseconds: 150),
16+
curve: Curves.linear,
1717
LineChartData(
1818
isShowingMainData ? sampleData1() : sampleData2(),
1919
),
@@ -22,10 +22,10 @@ LineChart(
2222

2323
##### How to disable
2424

25-
If you want to disable the animations, you can set `Duration.zero` as `swapAnimationDuration`.
25+
If you want to disable the animations, you can set `Duration.zero` as `duration`.
2626
```dart
2727
LineChart(
28-
swapAnimationDuration: Duration.zero,
28+
duration: Duration.zero,
2929
LineChartData(
3030
// Your chart data here
3131
),

0 commit comments

Comments
 (0)