From aced68aa3208ea395c56418ba44d0f9266ca915a Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 24 Jan 2023 13:30:00 -0600 Subject: [PATCH] add border to secondary buttons based on theme --- lib/utilities/theme/stack_colors.dart | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lib/utilities/theme/stack_colors.dart b/lib/utilities/theme/stack_colors.dart index 06acdbe7b..5175bef91 100644 --- a/lib/utilities/theme/stack_colors.dart +++ b/lib/utilities/theme/stack_colors.dart @@ -1559,6 +1559,15 @@ class StackColors extends ThemeExtension { backgroundColor: MaterialStateProperty.all( 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 { backgroundColor: MaterialStateProperty.all( 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 { backgroundColor: MaterialStateProperty.all( textFieldDefaultBG, ), + shape: MaterialStateProperty.all( + RoundedRectangleBorder( + side: BorderSide( + color: buttonBackBorder, + width: 1, + ), + borderRadius: BorderRadius.circular(10000), + ), + ), ); ButtonStyle? getDesktopMenuButtonStyle(BuildContext context) =>