glassmorphic_ui_kit 1.0.2
glassmorphic_ui_kit: ^1.0.2 copied to clipboard
A Flutter package for implementing modern glassmorphic UI trends with smooth blur effects, frosted glass appearance, and gradient overlays.
Glassmorphic UI Kit 🌟 #
A Flutter package designed to implement modern glassmorphic UI trends with smooth blur effects, frosted glass appearance, and gradient overlays. Enhance your app's user experience with sleek, futuristic designs.
Features 🛠️ #
1. Prebuilt Glass Widgets #
GlassButton
: Blurred button with ripple effectGlassCard
: Frosted-glass card for UI elementsGlassDialog
: Customizable glass dialogGlassBottomSheet
: Blurred bottom sheet with opacity control
2. Customizable Blur & Transparency #
- Adjustable blur intensity
- Dynamic opacity control
- Customizable border radius
3. Gradient Overlays #
- Linear gradient support
- Radial gradient support
- Dynamic gradient animations
4. Performance Optimized #
- Efficient rendering
- Smooth animations
- Flutter's Skia engine optimized
5. Cross-Platform Support #
- iOS ✓
- Android ✓
- Web ✓
- Windows & macOS ✓
Getting Started 🚀 #
Add the package to your pubspec.yaml
:
dependencies:
glassmorphic_ui_kit: ^1.0.0
Usage 💻 #
Basic Glass Container #
GlassContainer(
width: 300,
height: 200,
blur: 20,
borderRadius: BorderRadius.circular(15),
gradient: LinearGradient(
colors: [
Colors.white.withOpacity(0.2),
Colors.white.withOpacity(0.1),
],
),
child: Center(child: Text("Glassmorphic Container")),
)
Glass Button #
GlassButton(
onPressed: () => print('Button pressed'),
blur: 10,
borderRadius: BorderRadius.circular(15),
child: Text("Glass Button"),
)
Glass Card #
GlassCard(
width: 300,
height: 200,
blur: 20,
child: Padding(
padding: EdgeInsets.all(16),
child: Column(
children: [
Text("Glass Card Title"),
Text("Content goes here"),
],
),
),
)
Glass Dialog #
GlassDialog(
title: Text("Glass Dialog"),
content: Text("This is a glassmorphic dialog!"),
actions: [
GlassButton(
onPressed: () => Navigator.pop(context),
child: Text("Close"),
),
],
)
Additional Information 📚 #
Customization #
All components support extensive customization:
- Blur intensity
- Opacity levels
- Gradient colors
- Border radius
- Animations
Best Practices #
- Use against contrasting backgrounds
- Maintain readable text contrast
- Consider performance impact with multiple overlapping effects
- Test on various devices for consistent appearance
Contributing #
Contributions are welcome! Please feel free to submit a Pull Request.
License #
This project is licensed under the MIT License - see the LICENSE file for details.
Support ❤️ #
If you find this package helpful, please give it a ⭐️ on GitHub!
For issues, feature requests, or questions, please file an issue on the GitHub repository.