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

后端 未结 1 1298
轻奢々
轻奢々 2021-01-11 19:58

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 acc

1条回答
  •  感动是毒
    2021-01-11 20:06

    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.

    0 讨论(0)
提交回复
热议问题