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

@@ -69,8 +69,8 @@ class MyStatelessWidget extends StatelessWidget {
),
TextButton(
style: TextButton.styleFrom(
foregroundColor: Colors.white,
padding: const EdgeInsets.all(16.0),
primary: Colors.white,
textStyle: const TextStyle(fontSize: 20),
),
onPressed: () {},