Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_27981847/article/details/88838230
Directly on the code:
leading: Builder(
builder: (context) => GestureDetector(
child: Padding(
padding: EdgeInsets.all(8.0),
child: CircleAvatar(
backgroundImage: NetworkImage(
'http://pic75.nipic.com/file/20150821/9448607_145742365000_2.jpg'),
),
),
onTap: () => Scaffold.of(context).openDrawer(),
),
),