forked from firka/flutter
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user