Read page as text

NIB / PLAYGROUND

Glass bottom navigation playground — NibComponents

Try glass bottom navigation in Flutter. Keep a floating glass bar above scrolling content while each destination retains its local state.

Open interactive view

Keep a floating glass bar above scrolling content while each destination retains its local state.

Read the full component guide and API

Public widgets and APIs

  • NibNavBar
  • NibNavItem
  • NibNavBadge
  • NibNavBarStyle
  • NibNavIndicatorStyle
  • NibNavIndicatorType
  • NibNavItemAnimation

Example Dart code

import 'package:nib_motion/nib_motion.dart' as motion;

// Inside a bounded Stack with content behind the bar.
motion.NibNavBar(
  currentIndex: selectedIndex,
  onIndexChanged: (index) => setState(() => selectedIndex = index),
  style: const motion.NibNavBarStyle(glass: true, glassBlur: 5),
  items: const [
    motion.NibNavItem(icon: Icon(Icons.home), label: 'Home'),
    motion.NibNavItem(icon: Icon(Icons.inbox), label: 'Inbox'),
  ],
)

Playground controls

ControlTypeOptions or rangeHelp
First destination labeltextLong labels are ellipsized visually; the semantic label retains the full text.
Inbox badge countnumber0.0–120.0Zero hides the badge. Counts above 99 display 99+.
MotiontoggleOn is the NibNavBar default. Off applies a local reduced-motion scope; system preference takes priority.
Bar bordertoggle
Glass blurnumber0.0–16.0Changes NibNavBarStyle.glassBlur on the background surface.
Glass highlightnumber0.0–1.0

Composition using nib_motion 0.3.4 and nib_components 0.2.2 local candidates. It is not an additional public Components widget.

Physical Android/iOS touch, native safe areas, screen readers and GPU paths are not certified by the bounded Flutter preview.

Pointer-down commits selection; cancelling a pointer does not restore the previous destination. Drag-to-select is not implemented.