animator 0.1.0  animator: ^0.1.0 copied to clipboard
animator: ^0.1.0 copied to clipboard
A Flutter library that makes animation easer. It allows for separation of animation setup from the User Interface.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'basic_animation_0/main.dart';
import 'basic_animation_1/main.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Animator Demo',
        home: Scaffold(
          appBar: AppBar(
            title: Text("Animator demo"),
          ),
          body: MyHomePage(),
        ));
  }
}
class MyHomePage extends StatelessWidget {
  goto(Widget page, BuildContext context) {
    Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) => page,
      ),
    );
  }
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          RaisedButton(
            child: Text("Basic Animation 0"),
            onPressed: () => goto(BasicAnimation0(), context),
          ),
          RaisedButton(
            child: Text("Basic Animation 1"),
            onPressed: () => goto(BasicAnimation1(), context),
          ),
        ],
      ),
    );
  }
}