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

The Cool Buttons Flutter package (package:cool_buttons) is a collection of visually engaging, customizable button widgets designed to enhance the user interface of Flutter applications. It provides a [...]

example/lib/main.dart

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

void main() => runApp(const ButtonDemoApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: LayoutBuilder(
          builder: (context, constraints) {
            return SingleChildScrollView(
              child: ConstrainedBox(
                
                constraints: BoxConstraints(minHeight: constraints.maxHeight),
                child: IntrinsicHeight(
                  
                  child: Container(
                    color: Colors.grey,
                    child: Center(
                      child: ConstrainedBox(
                        constraints: const BoxConstraints(maxWidth: 400),
                        child: Column(
                          mainAxisAlignment: MainAxisAlignment.center,
                          crossAxisAlignment: CrossAxisAlignment.center,
                          children: [
                            SizedBox(height: 50,),
                            ShimmerButton(
                              text: "Shimmer Button",
                              onTap: () => print("Tapped!"),
                            ),
                            const SizedBox(height: 50),
                            SleekOutlinedButton(
                              text: "Sleek",
                              onTap: () => print("Sleek!"),
                            ),
                            const SizedBox(height: 50),
                            RoboticRevolvingButton(
                              text: "Revolve",
                              lineColor: Colors.yellowAccent,
                              onTap: () => print("Revolve tapped"),
                              textColor: Colors.white,
                            ),
                            const SizedBox(height: 50),
                            AnimatedDeleteButton(
                              onDelete: () => print("Delete tapped"),
                            ),
                            const SizedBox(height: 50),
                            AnimatedGetStartedButton(
                              text: "Get Started",
                              onTap: () => print("Get Started tapped"),
                            ),
                            const SizedBox(height: 50),
                            CompleteOrderButton(
                              text: "Complete Order",
                              width: 200,
                              onPressed: () => print("Complete Order tapped"),
                            ),
                            const SizedBox(height: 50),
                            CheckoutButton(
                              width: 210,
                              text: "Checkout",
                              onPressed: () => print("Checkout tapped"),
                            ),
                            const SizedBox(height: 50),
                            EpicCreatePostButton(
                              onPressed: () => print("Create a Post tapped"),
                              width: 210,
                              height: 60,
                            ),
                            const SizedBox(height: 50),
                            FuturisticButton(
                              text: "Futuristic",
                              onPressed: () => print("Lightning Border Button tapped"),
                              width: 210,
                            ),
                            SizedBox(height: 50,),
                            DarkButton(height: 50,width: 200,text: 'Dark Button',),
                            SizedBox(height: 50,),
                            ExploreButton(text: 'Get Started',),
                            SizedBox(height: 50,),
                          ],
                        ),
                      ),
                    ),
                  ),
                ),
              ),
            );
          },
        ),
      ),
    );
  }
}
10
likes
130
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

The Cool Buttons Flutter package (package:cool_buttons) is a collection of visually engaging, customizable button widgets designed to enhance the user interface of Flutter applications. It provides a variety of animated and stylized buttons, each with unique effects such as shimmering gradients, revolving animations, pulsating visuals, and futuristic designs, making them ideal for creating interactive and modern UI/UX experiences..

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts

More

Packages that depend on cool_buttons