mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Fix small nits with the animation samples (#138)
This commit is contained in:
committed by
Andrew Brogdon
parent
317d459a58
commit
4481391d39
@@ -60,7 +60,7 @@ class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
|
||||
color: color,
|
||||
borderRadius: BorderRadius.circular(borderRadius),
|
||||
),
|
||||
duration: Duration(milliseconds: 400),
|
||||
duration: const Duration(milliseconds: 400),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -28,7 +28,7 @@ class _AnimationControllerDemoState extends State<AnimationControllerDemo>
|
||||
|
||||
controller = AnimationController(vsync: this, duration: _duration)
|
||||
// The Widget's build needs to be called every time the animation's
|
||||
// value changes. So add an listener here that will call setState()
|
||||
// value changes. So add a listener here that will call setState()
|
||||
// and trigger the build() method to be called by the framework.
|
||||
// If your Widget's build is relatively simple, this is a good option.
|
||||
// However, if your build method returns a tree of child Widgets and
|
||||
|
||||
Reference in New Issue
Block a user