Unverified Commit 64a73274 authored by Tirth's avatar Tirth Committed by GitHub

[Fix] Consistency in ButtonStyleButton related Tests (#140610)

[Fix] Consistency in ButtonStyleButton related Tests:
- Replaced the usage of ElevatedButton with FilledButton in FilledButton's test.
- Replaced the usage of TextButton.styleFrom with FilledButton.styleFrom in FilledButton's test.
- Replaced the usage of TextButton.styleFrom with ElevatedButton.styleFrom in ElevatedButton's test.
parent 6ad032b7
...@@ -1578,7 +1578,7 @@ void main() { ...@@ -1578,7 +1578,7 @@ void main() {
children: <Widget>[ children: <Widget>[
ElevatedButton( ElevatedButton(
key: key0, key: key0,
style: TextButton.styleFrom( style: ElevatedButton.styleFrom(
minimumSize: const Size(24, 36), minimumSize: const Size(24, 36),
maximumSize: const Size.fromWidth(64), maximumSize: const Size.fromWidth(64),
), ),
...@@ -1587,7 +1587,7 @@ void main() { ...@@ -1587,7 +1587,7 @@ void main() {
), ),
ElevatedButton.icon( ElevatedButton.icon(
key: key1, key: key1,
style: TextButton.styleFrom( style: ElevatedButton.styleFrom(
minimumSize: const Size(24, 36), minimumSize: const Size(24, 36),
maximumSize: const Size.fromWidth(104), maximumSize: const Size.fromWidth(104),
), ),
......
...@@ -1405,7 +1405,7 @@ void main() { ...@@ -1405,7 +1405,7 @@ void main() {
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true), theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
home: Scaffold( home: Scaffold(
body: Center( body: Center(
child: ElevatedButton( child: FilledButton(
key: key, key: key,
onPressed: () {}, onPressed: () {},
child: const Text('FilledButton'), child: const Text('FilledButton'),
...@@ -1435,7 +1435,7 @@ void main() { ...@@ -1435,7 +1435,7 @@ void main() {
key: key, key: key,
icon: const Icon(Icons.favorite), icon: const Icon(Icons.favorite),
onPressed: () {}, onPressed: () {},
label: const Text('ElevatedButton'), label: const Text('FilledButton'),
), ),
), ),
), ),
...@@ -1652,7 +1652,7 @@ void main() { ...@@ -1652,7 +1652,7 @@ void main() {
children: <Widget>[ children: <Widget>[
FilledButton( FilledButton(
key: key0, key: key0,
style: TextButton.styleFrom( style: FilledButton.styleFrom(
minimumSize: const Size(24, 36), minimumSize: const Size(24, 36),
maximumSize: const Size.fromWidth(64), maximumSize: const Size.fromWidth(64),
), ),
...@@ -1661,7 +1661,7 @@ void main() { ...@@ -1661,7 +1661,7 @@ void main() {
), ),
FilledButton.icon( FilledButton.icon(
key: key1, key: key1,
style: TextButton.styleFrom( style: FilledButton.styleFrom(
minimumSize: const Size(24, 36), minimumSize: const Size(24, 36),
maximumSize: const Size.fromWidth(104), maximumSize: const Size.fromWidth(104),
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment