flutter_slide_drawer

A Flutter package, It would help you make has slide effect drawer easy.

Getting Started

To start using this package, add flutter_slide_drawer dependency to your pubspec.yaml

dependencies:
  flutter_slide_drawer: "<latest_release>"

Documentation

SliderDrawerWidget

    SliderDrawerWidget(
        key: drawerKey,
        option: SliderDrawerOption(),
        drawer: CustomDrawer(),
        body: Scaffold(
          appBar: AppBar(),
          body: Container(),
        )
    )
ParametersValueRequiredDocs
keyGlobalKey<SliderDrawerWidgetState>YESRequired to open drawer.
drawerWidgetYESCustom Widget to use drawer
bodyWidgetYESBody Widget
optionSliderDrawerOptionNoYou can set several options.

SliderDrawerOption

    SliderDrawerOption(
      backgroundImage: Image.asset("assets/sample_background.jpg"),
      backgroundColor: Colors.black,
      sliderEffectType: SliderEffectType.Rounded,
      upDownScaleAmount: 50,
      radiusAmount: 50,
    )
ParametersValueRequiredDocs
backgroundImageImage WidgetNobe covered Background Image in Drawer
backgroundColorColorNobackground Color in Drawer (default Color is blue)
sliderEffectTypeSliderEffectTypeNoSlide push Effect Type ( Rounded , Rectangle)
upDownScaleAmountdoubleNoIf you use SliderEffectType.Runded then you can use this parameters. It make margin Vertical in Scaffold
radiusAmountdoubleNoIf you use SliderEffectType.Runded then you can use this parameters. It make as amount as radius in Scaffold

Screens

Using Background Image And Rounded Type

Example App Demo2

Default FlutterSliderWidget

Example app Demo

Libraries

flutter_slide_drawer
flutter_slide_widget