Some miscellaneous changes found while making another PR (#111620)

This commit is contained in:
Greg Spencer
2022-09-20 14:03:02 -07:00
committed by GitHub
parent 4aea2f9933
commit ce7789e030
4 changed files with 12 additions and 10 deletions

View File

@@ -340,7 +340,7 @@ class _DemoButtonState extends State<DemoButton> {
return TextButton(
focusNode: _focusNode,
style: ButtonStyle(
foregroundColor: MaterialStateProperty.all<Color>(Colors.black),
foregroundColor: const MaterialStatePropertyAll<Color>(Colors.black),
overlayColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {
if (states.contains(MaterialState.focused)) {
return Colors.red;