fizzybutton 0.0.1
fizzybutton: ^0.0.1 copied to clipboard
A fizzy animated login button with bubble effects and smooth loading transition.
Fizzy Button ๐งโจ #
A beautiful, animated fizzy login button for Flutter with bubble effects, smooth loading transitions, and morphing into a circular progress indicator.
โจ Features #
- ๐ง Fizzy bubble animation on tap
- ๐ Smooth transition to loading state
- ๐ Button morphs into a circular loader
- โก Fully customizable (colors, text, size)
- ๐ Async support for real login APIs
- ๐ฏ Lightweight & easy to use
๐ธ Preview #
Add your GIF here (recommended)
assets/demo.gif
๐ Installation #
Add this to your pubspec.yaml:
dependencies:
fizzy_button: ^0.0.1
Then run:
flutter pub get
๐ Usage #
import 'package:flutter/material.dart';
import 'package:fizzy_button/fizzy_button.dart';
class DemoScreen extends StatelessWidget {
const DemoScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: Center(
child: FizzyLoginButton(
onTap: () async {
await Future.delayed(const Duration(seconds: 2));
},
),
),
);
}
}
โ๏ธ Customization #
FizzyLoginButton(
width: 240,
height: 60,
text: "Sign In",
loadingText: "Please wait...",
gradientColors: [Colors.purple, Colors.blue],
bubbleColor: Colors.white,
textColor: Colors.white,
onTap: () async {
await Future.delayed(const Duration(seconds: 3));
},
)
๐ฌ Behavior #
- User taps button
- Fizzy bubbles animate
- Text changes to "Logging in..."
- Button shrinks into a circle
- Circular loader appears
- Returns to normal after async completes
๐ง API #
| Property | Type | Default | Description |
|---|---|---|---|
onTap |
Future<void> Function() |
null |
Async callback |
width |
double |
220 |
Button width |
height |
double |
60 |
Button height |
text |
String |
"Login" |
Default label |
loadingText |
String |
"Logging in..." |
Loading label |
gradientColors |
List<Color> |
[blue, cyan] |
Background gradient |
bubbleColor |
Color |
white |
Bubble color |
textColor |
Color |
white |
Text color |
๐งช Example #
See the /example folder for a complete working app.
๐ฆ Roadmap #
- โ Loading animation
- ๐ Success checkmark animation
- ๐ Error state with shake
- ๐ Controller support
- ๐ More bubble physics customization
๐ค Contributing #
Contributions are welcome! Feel free to open issues or submit pull requests.
๐ License #
MIT License ยฉ 2026
๐ก Author #
Built with โค๏ธ using Flutter