fix analyzer warning: use const where possible (#9320)

This commit is contained in:
Yegor
2017-04-10 14:20:47 -07:00
committed by GitHub
parent 5efbe05f04
commit a5593b1678
5 changed files with 7 additions and 7 deletions

View File

@@ -378,7 +378,7 @@ class _AppBarState extends State<AppBar> {
if (leading == null) {
if (_hasDrawer) {
leading = new IconButton(
icon: new Icon(Icons.menu),
icon: const Icon(Icons.menu),
onPressed: _handleDrawerButton,
tooltip: 'Open navigation menu' // TODO(ianh): Figure out how to localize this string
);