Skip to content

Sidebar ​

A vertical navigation panel built from SidebarItem entries, with dark and collapsible variants for dashboard-style layouts.

View source on GitHub ↗

CLI ​

Install this component into your project:

sidebar
$flutter_beautify add sidebar

Variants ​

FBSidebar.standard() · FBSidebar.dark() · FBSidebar.collapsible()

Key parameters ​

ParameterTypeDefault
itemsList<SidebarItem>required
selectedIndexint0
onItemSelectedValueChanged<int>?—
activeColorColor?ambient colorScheme.primary
isCollapsed / onCollapsedChangedbool / ValueChanged<bool>?(.collapsible() only)

Usage ​

dart
import 'package:your_app/widgets/sidebar.dart';

FBSidebar.standard(
  items: navItems,
  selectedIndex: currentIndex,
  onItemSelected: (i) => setState(() => currentIndex = i),
);

Released under the MIT License.