Flutter之AppBar自定义开启drawer

Flutter之AppBar自定义开启drawer

// Builder方法
Scaffold(
	appBar: AppBar(
		leading: Builder(builder: (context) {
          return IconButton(
            icon: Icon(Icons.menu, color: Colors.black, size: 35),
            onPressed: () {
              Scaffold.of(context).openDrawer();
            },
          );
        }),
	)
)

你可能感兴趣的:(Flutter,android,flutter)