More const immutable classes (#9544)

* more widget const constructors

* prefer const constructors

* address review comments
This commit is contained in:
Alexandre Ardhuin
2017-04-23 22:37:29 +02:00
committed by GitHub
parent 054c937917
commit 83fce211a3
111 changed files with 580 additions and 667 deletions

View File

@@ -44,7 +44,7 @@ new FlatButton(
// Create a disabled button.
// Buttons are disabled when onPressed isn't
// specified or is null.
new FlatButton(
const FlatButton(
child: const Text('BUTTON TITLE'),
onPressed: null
);