
drawerEdgeDragWidthScaffold 的属性设置为0。
@overrideWidget build(BuildContext context) { return Scaffold( drawerEdgeDragWidth: 0, // THIS WAY IT WILL NOT OPEN drawer: Drawer(), appBar: AppBar( leading: IconButton( icon: Icon(Icons.menu), onPressed: () { Scaffold.of(context).openDrawer(); }, ), ), );}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)