Update parameters to the styleFrom button methods. (#105291)

* Update parameters to the `styleFrom` button methods.

* Updated the Flutter fix data to point to this PR.

* Updated handling of background color to better maintain backwards compatibility with previous API.
This commit is contained in:
Darren Austin
2022-06-21 19:08:22 -07:00
committed by GitHub
parent ce10e6fff2
commit 2532584bf3
21 changed files with 404 additions and 106 deletions

View File

@@ -49,7 +49,7 @@ class MyStatelessWidget extends StatelessWidget {
child: AbsorbPointer(
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.blue.shade200,
backgroundColor: Colors.blue.shade200,
),
onPressed: () {},
child: null,