在颤动的时候我不能把抽屉放在appBar下面并在抽屉和arrow.left打开时关闭菜单图标
@override
Widget build(BuildContext context) {
return MaterialApp(
home: new Scaffold(
body: new Scaffold(
key: _scaffoldKey, drawer: new MyDrawer()),
appBar: new AppBar(
leading: new IconButton(
icon: icon,
onPressed: () { _handleDrawer();
//Scaffold.of(context).openDrawer();
},
),
automaticallyImplyLeading: true,
title: Text('Prospectos'),
actions: <Widget>[
Container(
padding: EdgeInsets.all(0.0),
child: IconButton(
icon: (Icon(Icons.search, color: Colors.white)),
iconSize: 36.0,
onPressed: null,
),
),
Container(
padding: EdgeInsets.all(0.0),
child: IconButton(
icon: (Icon(Icons.local_bar, color: Colors.white)),
iconSize: 36.0,
onPressed: null,
),
),
Container(
padding: EdgeInsets.all(0.0),
child: IconButton(
icon: (Icon(Icons.cached, color: Colors.white)),
iconSize: 36.0,
onPressed: null,
),
),
],
),
),
);
}