enable lint unnecessary_const (#19342)

This commit is contained in:
Alexandre Ardhuin
2018-07-16 21:43:48 +02:00
committed by GitHub
parent d10e46ea65
commit cc1cf13eec
556 changed files with 40458 additions and 40457 deletions

View File

@@ -26,7 +26,7 @@ new RaisedButton(
// Buttons are disabled when onPressed isn't
// specified or is null.
const RaisedButton(
child: const Text('BUTTON TITLE'),
child: Text('BUTTON TITLE'),
onPressed: null
);
@@ -54,7 +54,7 @@ new OutlineButton(
// Buttons are disabled when onPressed isn't
// specified or is null.
const OutlineButton(
child: const Text('BUTTON TITLE'),
child: Text('BUTTON TITLE'),
onPressed: null
);
@@ -82,7 +82,7 @@ new FlatButton(
// Buttons are disabled when onPressed isn't
// specified or is null.
const FlatButton(
child: const Text('BUTTON TITLE'),
child: Text('BUTTON TITLE'),
onPressed: null
);
// END
@@ -136,7 +136,7 @@ new Scaffold(
title: const Text('Demo')
),
floatingActionButton: const FloatingActionButton(
child: const Icon(Icons.add),
child: Icon(Icons.add),
onPressed: null
)
);