min_animations 0.0.2 copy "min_animations: ^0.0.2" to clipboard
min_animations: ^0.0.2 copied to clipboard

A sweet little package containing animation widgets and animation extensions.

min_animations #

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

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: Container(
            width: 100,
            height: 100,
            color: Colors.grey.shade300,
            child: const Center(
              child: Text(
                'Flip',
                style: TextStyle(
                  fontSize: 20,
                  fontWeight: FontWeight.bold,
                ),
              ),
            ),
          ).flipAnimation(
            duration: const Duration(milliseconds: 1000),
            end: 0.0,
            begin: 3.14159,
            curve: Curves.linear,
            reverse: false,
          ),
        ),
      ),
    );
  }
}
2
likes
140
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A sweet little package containing animation widgets and animation extensions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on min_animations