cool_buttons 0.0.1
cool_buttons: ^0.0.1 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 [...]
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,),
],
),
),
),
),
),
),
);
},
),
),
);
}
}