getButtonStyle method
Returns a material ButtonStyle, this method makes more easy buttons styling.
Implementation
@override
AuthButtonStyle? getButtonStyle() {
Color? buttonColor;
if (isDark) buttonColor = AuthColors.darkMode;
if (!enabled) {
buttonColor = isDark ? AuthColors.disabledDark : AuthColors.disabled;
}
return style.merge(
AuthButtonStyle(
separator: 10.0,
height: 40.0,
borderRadius: 8.0,
buttonColor: buttonColor,
),
);
}