From 4481391d399632a2006ba304f0a5170cbc18fc21 Mon Sep 17 00:00:00 2001 From: Thea Flowers Date: Tue, 10 Sep 2019 15:34:30 -0700 Subject: [PATCH] Fix small nits with the animation samples (#138) --- animations/lib/src/basics/01_animated_container.dart | 2 +- animations/lib/src/basics/03_animation_controller.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/animations/lib/src/basics/01_animated_container.dart b/animations/lib/src/basics/01_animated_container.dart index eb5b7df62..f08ace32f 100644 --- a/animations/lib/src/basics/01_animated_container.dart +++ b/animations/lib/src/basics/01_animated_container.dart @@ -60,7 +60,7 @@ class _AnimatedContainerDemoState extends State { color: color, borderRadius: BorderRadius.circular(borderRadius), ), - duration: Duration(milliseconds: 400), + duration: const Duration(milliseconds: 400), ), ), ), diff --git a/animations/lib/src/basics/03_animation_controller.dart b/animations/lib/src/basics/03_animation_controller.dart index bcae56de2..960fc45b6 100644 --- a/animations/lib/src/basics/03_animation_controller.dart +++ b/animations/lib/src/basics/03_animation_controller.dart @@ -28,7 +28,7 @@ class _AnimationControllerDemoState extends State 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