inani 0.1.0 copy "inani: ^0.1.0" to clipboard
inani: ^0.1.0 copied to clipboard

Flutter Package to help you animate your widgets on entry.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: const HomePage(),
        
        bottomNavigationBar: SizedBox(
          height: 50,
          child: InaniBottom(
            curve: Curves.decelerate,
            duration: 4,
            child: InaniContainer(
              color: Colors.pink,
              width: 200,
              height: 40,
            ),
          ),
        ),
        
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SizedBox(
          height: 50,
          child: InaniTop(
            duration: 3,
            curve: Curves.bounceOut,
            child: InaniContainer(
              color: Colors.pink,
              width: 200,
              height: 40,
            ),
          ),
        ),
        SizedBox(
          height: 400,
          child: InaniCross(
            children: [
              InaniContainer(
                color: Colors.red,
                width: 200,
                height: 50,
              ),
              InaniContainer(
                color: Colors.blue,
                width: 200,
                height: 50,
              ),
              InaniContainer(
                color: Colors.green,
                width: 200,
                height: 50,
              ),
              InaniContainer(
                color: Colors.yellow,
                width: 200,
                height: 50,
              )
            ],
          ),
        ),
      ],
    );
  }
}
0
likes
130
pub points
0%
popularity

Publisher

verified publishergabrielvieira.ao

Flutter Package to help you animate your widgets on entry.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on inani