Skip to content
pubscout

flutter_sliding_drawer

2.0.2, released 3 weeks ago by lanars.com

A widget to show a navigation drawer with a sliding animation.

WASM-ready
$ flutter pub add flutter_sliding_drawer
Source repository

What it does

Provides a SlidingDrawer widget that accepts content and drawer builders. It supports left and right positions, custom widths, durations, curves, and gesture handling.

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

Use it when

  • You need a custom drawer menu with a sliding animation.
  • You want to support both left and right drawer placements.

Skip it when

  • You want the standard Material Scaffold drawer implementation.

Strengths

  • Easy to set up with content and drawer builders
  • Supports customizable width, animation duration, and curve
  • Allows programmatic opening, closing, and toggling via a GlobalKey

Weaknesses

  • Limited to sliding drawer use cases compared to full UI kits

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SlidingDrawer(
  contentBuilder: (context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Home page')),
    );
  },
  drawerBuilder: (context) {
    return MyDrawerWidget();
  },
)

Alternatives

Packages that do the same job and could replace flutter_sliding_drawer.