Answers for "animation in flutter"

9

Animation Flutter

class _WelcomeScreenState extends State<WelcomeScreen>
  with SingleTickerProviderStateMixin {
  AnimationController controller;
  Animation animation;

  @override
  void initState() {
  super.initState();
  controller = AnimationController(
  duration: Duration(seconds: 1),
  vsync: this,
  );

  animation = ColorTween(begin: Colors.blueGrey, end: Colors.white)
      .animate(controller);

  controller.forward();

  controller.addListener(() {
  setState(() {});
  print(animation.value);
  });
  }
Posted by: Guest on August-25-2020
0

animation in flutter

annimation flutter
Posted by: Guest on June-14-2021

Code answers related to "animation in flutter"

Browse Popular Code Answers by Language