make some widgets const (#9477)

This commit is contained in:
Alexandre Ardhuin
2017-04-20 08:59:05 +02:00
committed by GitHub
parent cbb49179c9
commit 03c54abd5f
23 changed files with 72 additions and 72 deletions

View File

@@ -192,7 +192,7 @@ new Switch(
// Create a disabled switch.
// Switches are disabled when onChanged isn't
// specified or null.
new Switch(value: false, onChanged: null);
const Switch(value: false, onChanged: null);
// END
}
}