ahmet-ozberk / min_animations

min_animations flutter package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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,
          ),
        ),
      ),
    );
  }
}

About

min_animations flutter package.

License:MIT License


Languages

Language:Dart 96.8%Language:Swift 2.6%Language:Kotlin 0.4%Language:Objective-C 0.1%