Skip to content
pubscout

anydrawer

2.1.1, released 2 weeks ago by nbhatt.com.np

Flutter drawer widget that slides from any edge without requiring a Scaffold.

WASM-ready
$ flutter pub add anydrawer
Source repository

What it does

A navigation and panel widget that lets you slide drawers from all four edges of the screen. It supports backdrop blur, drag-to-close gestures, edge swiping, returning results, and displaying multiple drawers simultaneously without depending on a Scaffold.

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

Use it when

  • You need drawers or panels that slide from the top or bottom, not just left and right.
  • Your layout does not use a Scaffold but you still need a slide-out drawer or overlay menu.
  • You want to return values (futures) from a drawer like a dialog.

Skip it when

  • You are fully satisfied with the standard Flutter Scaffold-bound Drawer.
  • You need standard Material Navigation Drawer behaviors built entirely around routing hierarchies.

Strengths

  • Works without a Scaffold from any edge (left, right, top, bottom).
  • Supports multiple concurrent drawers, backdrop blur, and swipe-from-edge gestures.
  • Provides both imperative showDrawer and declarative AnyDrawer APIs.

Weaknesses

  • Adds a custom overlay/route approach rather than integrating natively into the standard Scaffold Drawer architecture.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:anydrawer/anydrawer.dart';

showDrawer(
  context,
  builder: (context) {
    return const Center(
      child: Text('Hello from the drawer!'),
    );
  },
);

Alternatives

Packages that do the same job and could replace anydrawer.