glassmorphic_ui_kit 1.0.6 copy "glassmorphic_ui_kit: ^1.0.6" to clipboard
glassmorphic_ui_kit: ^1.0.6 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.

pub package likes popularity

Features 🛠️ #

1. Prebuilt Glass Widgets #

  • GlassButton: Blurred button with ripple effect
  • GlassCard: Frosted-glass card for UI elements
  • GlassDialog: Customizable glass dialog
  • GlassBottomSheet: Blurred bottom sheet with opacity control
  • GlassBottomNavigationBar: Navigation bar with glass effect
  • GlassDrawer: Drawer with glass effect and custom tiles
  • GlassProgressIndicator: Progress bar with glass effect

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.6

Usage 💻 #

Basic Glass Container #

GlassContainer(
  width: 300,
  height: 200,
  blur: 20,
  borderRadius: BorderRadius.circular(15),
  gradient: LinearGradient(
    colors: [
      Colors.white.withAlpha(51),  // 0.2 opacity
      Colors.white.withAlpha(26),  // 0.1 opacity
    ],
  ),
  child: Center(child: Text("Glassmorphic Container")),
)

Glass Button #

GlassButton(
  onPressed: () => print('Button pressed'),
  blur: 10,
  borderRadius: BorderRadius.circular(15),
  child: Text("Glass Button"),
)

Glass Bottom Navigation Bar #

GlassBottomNavigationBar(
  currentIndex: _currentIndex,
  onTap: (index) => setState(() => _currentIndex = index),
  items: const [
    GlassBottomNavigationBarItem(
      icon: Icon(Icons.home),
      label: 'Home',
    ),
    GlassBottomNavigationBarItem(
      icon: Icon(Icons.search),
      label: 'Search',
    ),
  ],
)

Glass Drawer #

GlassDrawer(
  blur: 10,
  opacity: 0.2,
  child: Column(
    children: [
      GlassDrawerTile(
        leading: Icon(Icons.home),
        title: Text('Home'),
        onTap: () {},
      ),
      GlassDrawerTile(
        leading: Icon(Icons.settings),
        title: Text('Settings'),
        onTap: () {},
      ),
    ],
  ),
)

Glass Progress Indicator #

GlassProgressIndicator(
  value: 0.7, // 70% progress
  height: 8.0,
  blur: 10,
  borderRadius: BorderRadius.circular(4),
)

Additional Information 📚 #

Customization #

All components support extensive customization:

  • Blur intensity
  • Opacity levels
  • Gradient colors
  • Border radius
  • Animations

Best Practices #

  1. Use against contrasting backgrounds
  2. Maintain readable text contrast
  3. Consider performance impact with multiple overlapping effects
  4. Test on various devices for consistent appearance
  5. Use withAlpha instead of withOpacity for better precision

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.

3
likes
0
points
110
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for implementing modern glassmorphic UI trends with smooth blur effects, frosted glass appearance, and gradient overlays.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter, flutter_blur, vector_math

More

Packages that depend on glassmorphic_ui_kit