animbutton 1.0.2 copy "animbutton: ^1.0.2" to clipboard
animbutton: ^1.0.2 copied to clipboard

Flutter animated button package: Elegant UI interactions with smooth animations, customizable styles, and seamless integration across the platforms.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Example(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: AnimButton(
            buttonColor: Colors.black,
            height: 45.0,
            width: MediaQuery.of(context).size.width * 0.40,
            animationCurve: Curves.easeIn,
            borderRadius: 10.0,
            textStyle: const TextStyle(
                color: Colors.white,
                fontSize: 20.0,
                fontWeight: FontWeight.normal),
            label: 'Anim Button',
            onPressed: () {
              debugPrint("Button Tapped");
            }),
      ),
    );
  }
}
3
likes
150
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter animated button package: Elegant UI interactions with smooth animations, customizable styles, and seamless integration across the platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on animbutton