In my Flutter app, I have this AppBar
Widget setAppBar(){
return new AppBar(
title: addAppBarTextWidget(\'Explore\'),
elevation: 0.0,
leading:
If you just need to move the icon a bit to the left like I did, you can still use the leading property and just set the alignment on the IconButton:
leading: Builder(
builder: (BuildContext context) {
return IconButton(
onPressed: () => Navigator.pop(context),
icon: MyIcon(),
alignment: Alignment(-0.5, 0.0), // move icon a bit to the left
);
},
),