Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any alternative way to change the Scaffold drawer width?

Currently Flutter Material directly not supporting editing Scaffold drawer controller. There is issue opened in their library to set width of drawer. Is there any we can access and change width? or Is there custom scaffold implementation exist to change the behaviour?

like image 585
sandeepcmsm Avatar asked Jul 04 '18 13:07

sandeepcmsm


1 Answers

Just copy the Drawer source to a MyDrawer class and change _kWidth there.

As @RémiRousselet suggested wrapping the Drawer with

SizedBox( width: myWith: child: myDrawer )

Is a much better way.

like image 61
Günter Zöchbauer Avatar answered Nov 07 '22 22:11

Günter Zöchbauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!