Skip to content

Instantly share code, notes, and snippets.

Created October 6, 2022 00:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Playing with animations
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart' show TestVSync;
void main() {
runApp(const Placeholder()); // to trigger the scheduler
AnimationController test = AnimationController(
duration: const Duration(milliseconds: 200),
vsync: const TestVSync(),
//Animation<double> animation = test;
//Animation<double> animation = ReverseAnimation(test);
Animation<double> animation =<double>(begin: 1, end: 0));
animation.addListener(() { debugPrint('${animation.status} ${animation.value}'); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment