flutter_slide_drawer
1.0.3, released 3 years ago by an unverified publisher
A widget that provides a slide drawer with customizable animation and background.
What it does
It wraps a body and a drawer widget, allowing the drawer to slide in with optional rounded or rectangular effects. The drawer can be opened by dragging or programmatically via a key.
AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a custom slide drawer with animation and background image support.
- You want RTL support without writing custom drawer logic.
Skip it when
- You only need the standard Flutter Drawer widget.
- You require complex navigation or state management beyond a simple drawer.
Strengths
- Easy to integrate with a single widget.
- Supports RTL and LTR directions.
- Customizable background image, color, and animation type.
- No external dependencies beyond Flutter.
Weaknesses
- Limited to drawer functionality; no navigation stack integration.
- No theming or advanced state management features.
- No support for nested drawers or complex gestures.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency to pubspec and import the package. No additional permissions or build_runner needed.
```dart
SliderDrawerWidget(
key: drawerKey,
option: SliderDrawerOption(
backgroundImage: Image.asset("assets/sample_background.jpg"),
backgroundColor: Colors.black,
sliderEffectType: SliderEffectType.Rounded,
upDownScaleAmount: 50,
radiusAmount: 50,
direction: SliderDrawerDirection.LTR,
),
drawer: CustomDrawer(),
body: Scaffold(
appBar: AppBar(),
body: Container(),
),
)
```Alternatives
Packages that do the same job and could replace flutter_slide_drawer.
- anydrawer
Flutter drawer widget that slides from any edge without requiring a Scaffold.
75Compare - custom_refresh_indicator
Widget that makes it easy to implement a custom pull to refresh gesture.
81Compare - flutter_sliding_drawer
A widget to show a navigation drawer with a sliding animation.
73Compare - intro_slider
A Flutter plugin that helps you create introductory slides and walkthroughs for apps.
59Compare