re-re-enable lint unnecessary_const (#20103)

This commit is contained in:
Alexandre Ardhuin
2018-08-02 12:02:32 +02:00
committed by GitHub
parent ffbaa97b50
commit eda03e2586
561 changed files with 41037 additions and 41036 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
)
);