Package for using custom sidebar in flutter as an parent root widget.
Features
- Custom Sidebar with animation
- Custom Appbar
- Parent widget to cover it all
Screenshots
Getting started
pub.dev
Usage
Create the List of MenuItems and add the MenuItem which you wish to add in your drawer using this widget
List<CustomMenuItem> menuItemsList=[
CustomMenuItem(
callback: () {
//Callback function to route to page on Click
},
title: 'Home',
leadingIcon: Icons.home,
iconSize: 22,
titleSize: 16,
),
CustomMenuItem(
callback: () {
//Callback function to route to page on Click
},
title: 'History',
leadingIcon: Icons.history,
iconSize: 22,
titleSize: 16,
),
];
Add the List of menuItems in CustomDrawer widget with other customised details . see example for further information
Scaffold(
// appBar: AppBar(
// title: Text(widget.title),
// ),
body:CustomDrawer(homeWidget: Center(child:Text('Your Home Widget'),),
menuItemsList: menuItemsList, appBarActions: [], appBarTitle: Text('Your Home Widget') , menuIcon: const Icon(Icons.menu),
)
);
Additional information
For contribution and issues: https://github.com/UsamaYousaf/custom_sidemenu