Skip to content
pubscout

sidebarx

0.17.2, released a year ago by frezycode.com

A Flutter widget that provides a responsive sidebar, drawer, or navigation bar for mobile, web, and desktop.

WASM-ready
$ flutter pub add sidebarx
Source repository

What it does

SidebarX renders a navigation sidebar that adapts to screen size. It can act as a permanent sidebar on large screens or a drawer on small screens, supporting icons, labels, hover effects, and custom actions.

AI-written summary of version 0.17.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a consistent navigation UI across mobile, web, and desktop
  • You want a sidebar that collapses/expands automatically
  • You prefer a single widget that handles both drawer and sidebar use cases

Skip it when

  • You need complex nested routing or deep link handling
  • You require a highly customized animation beyond the provided options

Strengths

  • Cross‑platform support (Android, iOS, Web, Windows, macOS, Linux)
  • Easy to use API with minimal boilerplate
  • Built‑in support for hover, long press, and custom icons
  • Responsive behavior out of the box

Weaknesses

  • No built‑in routing integration (you must manage navigation yourself)
  • Limited to sidebar/drawer UI, not a full navigation framework
  • No support for nested routes or advanced navigation patterns

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency in pubspec and import package

Scaffold(
  body: Row(
    children: [
      SidebarX(
        controller: SidebarXController(selectedIndex: 0),
        items: const [
          SidebarXItem(icon: Icons.home, label: 'Home'),
          SidebarXItem(icon: Icons.search, label: 'Search'),
        ],
      ),
      // Your app screen body
    ],
  ),
)

Alternatives

Packages that do the same job and could replace sidebarx.