|
|
|
@ -37,19 +37,14 @@ dependencies:
|
|
|
|
|
body:SliderMenuContainer(
|
|
|
|
|
appBarColor: Colors.white,
|
|
|
|
|
key: _key,
|
|
|
|
|
sliderOpen: SliderOpen.TOP_TO_BOTTOM,
|
|
|
|
|
appBarPadding: const EdgeInsets.only(top: 10),
|
|
|
|
|
sliderMenuOpenOffset: 210,
|
|
|
|
|
appBarHeight: 60,
|
|
|
|
|
sliderMenuOpenSize: 200,
|
|
|
|
|
title: Text(
|
|
|
|
|
title,
|
|
|
|
|
style: TextStyle(fontSize: 22, fontWeight: FontWeight.w700),
|
|
|
|
|
),
|
|
|
|
|
sliderMenu: MenuWidget(
|
|
|
|
|
onProfilePictureClick: () {},
|
|
|
|
|
onItemClick: (title) {
|
|
|
|
|
_key.currentState.closeDrawer();
|
|
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
this.title = title;
|
|
|
|
|
});
|
|
|
|
@ -81,7 +76,8 @@ GlobalKey<SliderMenuContainerState> _key =
|
|
|
|
|
return SliderMenuContainer(
|
|
|
|
|
appBarColor: Colors.white,
|
|
|
|
|
key: _key,
|
|
|
|
|
sliderMenuWidget: MenuWidget(
|
|
|
|
|
sliderMenuOpenSize: 200,
|
|
|
|
|
sliderMenu: MenuWidget(
|
|
|
|
|
onItemClick: (title) {
|
|
|
|
|
_key.currentState.closeDrawer();
|
|
|
|
|
setState(() {
|
|
|
|
@ -89,8 +85,7 @@ GlobalKey<SliderMenuContainerState> _key =
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
sliderMainWidget: MainWidget()),
|
|
|
|
|
),
|
|
|
|
|
sliderMain: MainWidget()),
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -100,9 +95,12 @@ GlobalKey<SliderMenuContainerState> _key =
|
|
|
|
|
_key.currentState.openDrawer();
|
|
|
|
|
_key.currentState.toggle();
|
|
|
|
|
_key.currentState.isDrawerOpen();
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
* Use below variable if you want to controlle animation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` _key.currentState.animationController```
|
|
|
|
|
|
|
|
|
|
License
|
|
|
|
|
----
|
|
|
|
|