Add const MaterialStatePropertyAll class. (#104127)

This commit is contained in:
Darren Austin
2022-05-19 09:35:33 -07:00
committed by GitHub
parent b1f10cebbe
commit 17e2fce1cf
27 changed files with 190 additions and 166 deletions

View File

@@ -143,7 +143,7 @@ class ListPage extends StatelessWidget {
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
child: OutlinedButton(
style: buttonStyle.copyWith(
backgroundColor: MaterialStateProperty.all<Color>(
backgroundColor: MaterialStatePropertyAll<Color>(
Color.lerp(destination.color[100], Colors.white, index / itemCount)!
),
),