add border to secondary buttons based on theme

This commit is contained in:
julian 2023-01-24 13:30:00 -06:00
parent 028b261dee
commit aced68aa32

View file

@ -1559,6 +1559,15 @@ class StackColors extends ThemeExtension<StackColors> {
backgroundColor: MaterialStateProperty.all<Color>(
buttonBackSecondary,
),
shape: MaterialStateProperty.all(
RoundedRectangleBorder(
side: BorderSide(
color: buttonBackBorder,
width: 1,
),
borderRadius: BorderRadius.circular(10000),
),
),
);
ButtonStyle? getSecondaryDisabledButtonStyle(BuildContext context) =>
@ -1566,6 +1575,15 @@ class StackColors extends ThemeExtension<StackColors> {
backgroundColor: MaterialStateProperty.all<Color>(
buttonBackSecondaryDisabled,
),
shape: MaterialStateProperty.all(
RoundedRectangleBorder(
side: BorderSide(
color: buttonBackBorder,
width: 1,
),
borderRadius: BorderRadius.circular(10000),
),
),
);
ButtonStyle? getSmallSecondaryEnabledButtonStyle(BuildContext context) =>
@ -1573,6 +1591,15 @@ class StackColors extends ThemeExtension<StackColors> {
backgroundColor: MaterialStateProperty.all<Color>(
textFieldDefaultBG,
),
shape: MaterialStateProperty.all(
RoundedRectangleBorder(
side: BorderSide(
color: buttonBackBorder,
width: 1,
),
borderRadius: BorderRadius.circular(10000),
),
),
);
ButtonStyle? getDesktopMenuButtonStyle(BuildContext context) =>