foldable_sidebar 1.0.0 foldable_sidebar: ^1.0.0 copied to clipboard
An easy to use Package for adding Foldable Flutter Navigation Sidebar to your Flutter Application.
Foldable Sidebar #
An easy to implement Foldable Sidebar Navigation Drawer for Flutter Applications.
Current Features #
- Initial Release for Foldable Navigation Sidebar
Demo #
Usage #
To Use, simply add FoldableSidebarBuilder to your Scaffold's body, as follows:
child: Scaffold(
body: FoldableSidebarBuilder(
drawerBackgroundColor: Colors.deepOrange,
drawer: CustomDrawer(closeDrawer: (){
setState(() {
drawerStatus = FDBStatus.FDB_CLOSE; // For Closing the Sidebar
});
},),
screenContents: FirstScreen(), // Your Screen Widget
status: drawerStatus,
),
floatingActionButton: FloatingActionButton(
backgroundColor: Colors.deepOrange,
child: Icon(Icons.menu,color: Colors.white,),
onPressed: () {
// To Open/Close Sidebar
setState(() {
drawerStatus = drawerStatus == FDBStatus.FDB_OPEN ? FDBStatus.FDB_CLOSE : FDBStatus.FDB_OPEN;
});
}),
),
),
Important Enums:
FSBStatus.FSB_OPEN //For Opening the Sidebar
FSBStatus.FSB_CLOSE //For Closing the Sidebar
Roadmap #
Plans to add more customizations.