customizable_buttons 1.0.0 copy "customizable_buttons: ^1.0.0" to clipboard
customizable_buttons: ^1.0.0 copied to clipboard

A highly customizable Flutter button widget with rich styling options, interactive animations, and responsive design support.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.grey[100],
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              CustomizableButton(
                onPressed: () => debugPrint('Default Button Pressed'),
                child: const Text(
                  'Default Button',
                  style: TextStyle(color: Colors.white),
                ),
              ),
              const SizedBox(height: 20),
              CustomizableButton(
                onPressed: () => debugPrint('Fancy Button Pressed'),
                color: Colors.purple,
                width: 200,
                height: 80,
                borderRadius: BorderRadius.circular(20),
                elevation: 6,
                animationDuration: const Duration(milliseconds: 500),
                child: const Text(
                  'Fancy Button',
                  style: TextStyle(
                    color: Colors.white,
                    fontSize: 18,
                    fontWeight: FontWeight.bold,
                  ),
                ),
              ),
              const SizedBox(height: 20),
              CustomizableButton(
                onPressed: null, // Disabled state
                child: const Text(
                  'Disabled Button',
                  style: TextStyle(color: Colors.white),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
140
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A highly customizable Flutter button widget with rich styling options, interactive animations, and responsive design support.

License

MIT (license)

Dependencies

flutter

More

Packages that depend on customizable_buttons