simple_animations 0.0.1 copy "simple_animations: ^0.0.1" to clipboard
simple_animations: ^0.0.1 copied to clipboard

outdated

Create awesome animations. Simplified.

example/main.dart

import 'package:flutter/material.dart';
import 'package:simple_animations/simple_animations.dart';

void main() {
  runApp(ExampleApp());
}

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(child: animatedContainer()),
      ),
    );
  }

  Widget animatedContainer() {
    return InstantAnimation(
      duration: Duration(milliseconds: 1500),
      tween: Tween(begin: 100.0, end: 300.0),
      builder: (context, animatedValue) {
        return Container(width: animatedValue, height: animatedValue, color: Colors.red);
      },
    );
  }
}