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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.