liquid_glass_bottom_bar
0.0.6, released a year ago by tnmprogramming.com.ar
A Flutter bottom navigation bar with frosted glass background and animated active pill.
What it does
Provides a bottom navigation bar that uses a blur effect to create a glass‑like background. The active tab is highlighted with a translucent, animated pill and optional badge counters.
AI-written summary of version 0.0.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a glass‑morphism style bottom navigation bar
- You need a simple drop‑in widget with customizable colors, blur intensity, and badges
Skip it when
- You require built‑in routing or deep‑link handling
- Performance is critical on low‑end devices due to blur rendering
Strengths
- Eye‑catching glass effect with real blur
- Highly customizable (colors, height, blur, labels, badges)
- Simple API, works as a drop‑in Scaffold.bottomNavigationBar
Weaknesses
- Blur can be GPU‑intensive on older devices
- Only visual navigation; no routing logic included
- Requires Scaffold(extendBody:true) and background content for effect
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add the package, run flutter pub get, and use Scaffold(extendBody:true) so the frosted effect can sample content behind the bar.
import 'package:flutter/material.dart';
import 'package:liquid_glass_bottom_bar/liquid_glass_bottom_bar.dart';
class MyScreen extends StatefulWidget {
const MyScreen({super.key});
@override
State<MyScreen> createState() => _MyScreenState();
}
class _MyScreenState extends State<MyScreen> {
int _currentIndex = 0;
final _pages = const [Center(child: Text('Home')), Center(child: Text('Search')), Center(child: Text('Profile'))];
@override
Widget build(BuildContext context) {
return Scaffold(
extendBody: true,
appBar: AppBar(title: const Text('Liquid Glass Demo')),
body: IndexedStack(index: _currentIndex, children: _pages),
bottomNavigationBar: LiquidGlassBottomBar(
items: const [
LiquidGlassBottomBarItem(icon: Icons.home_outlined, activeIcon: Icons.home, label: 'Home'),
LiquidGlassBottomBarItem(icon: Icons.search_outlined, label: 'Search'),
LiquidGlassBottomBarItem(icon: Icons.person_outline, activeIcon: Icons.person, label: 'Profile', badge: 5),
],
currentIndex: _currentIndex,
onTap: (i) => setState(() => _currentIndex = i),
activeColor: Color(0xFF34C3FF),
barBlurSigma: 16,
activeBlurSigma: 24,
),
);
}
}
Alternatives
Packages that do the same job and could replace liquid_glass_bottom_bar.
- native_glass_navbar
A Flutter plugin that renders the native iOS Liquid Glass style navigation bar.
72Compare - animated_notch_bottom_bar
An animated notch bottom navigation bar with customizable items and blur effects.
75Compare - animated_bottom_navigation_bar
An animated bottom navigation bar widget supporting floating action buttons and notches.
79Compare - curved_navigation_bar_pro
A customizable curved bottom navigation bar with an animated notch and elastic FAB bubble.
77Compare