make @immutable const classes (#9532)
* make @immutable const * fix build
This commit is contained in:
committed by
GitHub
parent
1abb6f5d74
commit
9541848272
@@ -25,7 +25,7 @@ new RaisedButton(
|
||||
// Create a disabled button.
|
||||
// Buttons are disabled when onPressed isn't
|
||||
// specified or is null.
|
||||
new RaisedButton(
|
||||
const RaisedButton(
|
||||
child: const Text('BUTTON TITLE'),
|
||||
onPressed: null
|
||||
);
|
||||
@@ -130,7 +130,7 @@ new Checkbox(
|
||||
// Create a disabled checkbox.
|
||||
// Checkboxes are disabled when onChanged isn't
|
||||
// specified or null.
|
||||
new Checkbox(value: false, onChanged: null);
|
||||
const Checkbox(value: false, onChanged: null);
|
||||
// END
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ new Row(
|
||||
);
|
||||
|
||||
// Creates a disabled radio button.
|
||||
new Radio<int>(
|
||||
const Radio<int>(
|
||||
value: 0,
|
||||
groupValue: 0,
|
||||
onChanged: null
|
||||
|
||||
Reference in New Issue
Block a user