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:
@@ -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: () {},
|
||||
|
||||
Reference in New Issue
Block a user