Skip to content

Commit 4481391

Browse files
theacodesredbrogdon
authored andcommitted
Fix small nits with the animation samples (#138)
1 parent 317d459 commit 4481391

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

animations/lib/src/basics/01_animated_container.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
6060
color: color,
6161
borderRadius: BorderRadius.circular(borderRadius),
6262
),
63-
duration: Duration(milliseconds: 400),
63+
duration: const Duration(milliseconds: 400),
6464
),
6565
),
6666
),

animations/lib/src/basics/03_animation_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class _AnimationControllerDemoState extends State<AnimationControllerDemo>
2828

2929
controller = AnimationController(vsync: this, duration: _duration)
3030
// The Widget's build needs to be called every time the animation's
31-
// value changes. So add an listener here that will call setState()
31+
// value changes. So add a listener here that will call setState()
3232
// and trigger the build() method to be called by the framework.
3333
// If your Widget's build is relatively simple, this is a good option.
3434
// However, if your build method returns a tree of child Widgets and

0 commit comments

Comments
 (0)