Trying to create a simple countdown timer animation in Flutter
.
I have used the StepTween
class along with an AnimatedController
to achieve the animation using the following:
Flutter - Create a countdown widget.
However, what I am trying to accomplish looks something like this:
I tried creating a Row
widget and adding a Text()
followed by AnimatedWidget()
. However the styling is nowhere near the expected result:
- How do I get the size/color for the text within the
AnimatedWidget()
to match the design? - The
AnimatedWidget()
switches to a single digit within the 0-10 region. For example instead of showing the countdown as0:09
it is shown as0:9
. How do I change that?
Thanks!