Closed zyllus17 closed 1 year ago
you can set AppBar by using appBar
prop
final DrawerScaffoldController controller = DrawerScaffoldController();
DrawerScaffold(
controller: controller,
appBar: AppBar(
leading: InkWell(
onTap: ()=> controller.toggle(),
child: Icon(Icons.menu),
),
),
)
more, https://github.com/shiburagi/Drawer-Behavior-Flutter#customize
I want to change the Icon to my desired icon. When I add my desired icon in the
leading
property in theAppBar
, I am not able to figure out what should be in the onPressed to open the side drawer.If you allow the option to change the icon or tell me what should I put in the onPressed, it would be very helpful.