Skip to content
pubscout

flutter_slider_drawer

3.0.2, released 2 years ago by an unverified publisher

A custom implementation of a slider drawer menu with animations and customizable app bars.

WASM-ready
$ flutter pub add flutter_slider_drawer
Source repository

What it does

Provides a slider drawer menu component supporting custom animation times, multiple opening directions (Left-to-Right, Right-to-Left, Top-to-Bottom), shadow effects, and built-in or custom app bars. It allows developers to control the drawer state programmatically via a GlobalKey.

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

Use it when

  • You need a drawer menu that slides over or pushes the main screen with a custom sliding animation.
  • You want directional slider opening like Left-to-Right, Right-to-Left, or Top-to-Bottom.

Skip it when

  • You strictly need the standard Material Design endDrawer or Scoped Drawer behavior without custom sliding layout wrappers.

Strengths

  • Supports multiple slide directions (RTL, LTR, TTB)
  • Customizable shadow, animation duration, and app bar integration
  • Provides programmatic control via SliderDrawerState

Weaknesses

  • Limited to specific slider drawer layout paradigms
  • Requires wrapping standard scaffold contents inside the SliderDrawer widget

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

Widget build(BuildContext context) {
  return Scaffold(
    body: SliderDrawer(
      key: _sliderDrawerKey,
      appBar: SliderAppBar(
        config: SliderAppBarConfig(
          title: Text(
            title,
            textAlign: TextAlign.center,
            style: const TextStyle(
              fontSize: 22,
              fontWeight: FontWeight.w700,
            ),
          ),
        ),
      ),
      sliderOpenSize: 179,
      slider: Container(color: Colors.red),
      child: Container(color: Colors.amber),
    ),
  );
}

Alternatives

Packages that do the same job and could replace flutter_slider_drawer.

  • adaptive_navbar

    A responsive Flutter navigation bar that switches between a full bar and a drawer based on screen size.

  • carousel_slider

    Carousel slider widget with infinite scroll, auto play, and custom child support

  • carousel_slider_plus

    A customizable carousel slider widget with infinite scroll and autoplay support.

  • kf_drawer

    A customizable animated side drawer for Flutter with controller, gesture, RTL, and multi-platform support.