Skip to content

Commit

Permalink
Fixed button style for color settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xpavle00 committed Aug 20, 2023
1 parent 625a609 commit d39bcd3
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions lib/settings/color_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,16 @@ class _ColorIconState extends State<ColorIcon> {
),
actions: <Widget>[
ElevatedButton(
style: const ButtonStyle(
style: ButtonStyle(
padding: MaterialStateProperty.all<EdgeInsets>(
const EdgeInsets.symmetric(
vertical: 10, horizontal: 20),
),
foregroundColor:
MaterialStatePropertyAll<Color>(
const MaterialStatePropertyAll<Color>(
Colors.white),
backgroundColor:
MaterialStatePropertyAll<Color>(
const MaterialStatePropertyAll<Color>(
Colors.grey),
),
child: const Text('Cancel'),
Expand All @@ -84,6 +88,10 @@ class _ColorIconState extends State<ColorIcon> {
),
ElevatedButton(
style: ButtonStyle(
padding: MaterialStateProperty.all<EdgeInsets>(
const EdgeInsets.symmetric(
vertical: 10, horizontal: 20),
),
foregroundColor:
const MaterialStatePropertyAll<Color>(
Colors.white),
Expand All @@ -101,12 +109,16 @@ class _ColorIconState extends State<ColorIcon> {
child: const Text('Reset'),
),
ElevatedButton(
style: const ButtonStyle(
style: ButtonStyle(
padding: MaterialStateProperty.all<EdgeInsets>(
const EdgeInsets.symmetric(
vertical: 10, horizontal: 20),
),
foregroundColor:
MaterialStatePropertyAll<Color>(
const MaterialStatePropertyAll<Color>(
Colors.white),
backgroundColor:
MaterialStatePropertyAll<Color>(
const MaterialStatePropertyAll<Color>(
HaboColors.primary),
),
child: const Text('Done'),
Expand Down

0 comments on commit d39bcd3

Please sign in to comment.