哈克,但它的作品。要禁用幻灯片打开功能,可以将
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(); }, ), ), );}


