re-enable lint unnecessary_const (#19592)

* re-enable lint unnecessary_const

* remove trailling whitespaces

* remove unnecessary const (after merge)
This commit is contained in:
Alexandre Ardhuin
2018-07-23 08:31:48 +02:00
committed by GitHub
parent 1cb2677234
commit 27018359d2
560 changed files with 40983 additions and 40982 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
)
);