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
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.
- cherry_toast
Display custom elegant toast notifications with built-in animations and themes.
63Compare - widget_loading
Widget that hides its child and shows a loading animation until data is ready
47Compare - flutter_sliding_up_panel
A sliding up panel widget to show or hide content.
50Compare - animated_introduction
Animated introduction screen widget for Flutter
47Compare