-
-
Save gabrielaraujoz/c8b918ad51af91bb29f92b0538ccebea to your computer and use it in GitHub Desktop.
revelobadgestyle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReveloBadgeStyle extends Equatable { | |
final Color backgroundColor; | |
final Color textColor; | |
final Border border; | |
const ReveloBadgeStyle._({ | |
@required this.backgroundColor, | |
@required this.textColor, | |
this.border, | |
}); | |
@override | |
List<Object> get props => [backgroundColor, textColor, border]; | |
factory ReveloBadgeStyle.red() => ReveloBadgeStyle._( | |
backgroundColor: ReveloColors.red, | |
textColor: ReveloColors.white, | |
); | |
factory ReveloBadgeStyle.blue() => ReveloBadgeStyle._( | |
backgroundColor: ReveloColors.blueLight, | |
textColor: ReveloColors.white, | |
); | |
factory ReveloBadgeStyle.blueLight() => ReveloBadgeStyle._( | |
backgroundColor: ReveloColors.blueLight, | |
textColor: ReveloColors.white, | |
); | |
factory ReveloBadgeStyle.green() => ReveloBadgeStyle._( | |
backgroundColor: ReveloColors.green, | |
textColor: ReveloColors.white, | |
); | |
factory ReveloBadgeStyle.gray() => ReveloBadgeStyle._( | |
backgroundColor: ReveloColors.gray, | |
textColor: ReveloColors.white, | |
); | |
factory ReveloBadgeStyle.outlined(BuildContext context) => ReveloBadgeStyle._( | |
backgroundColor: ReveloColors.whiteTransparent, | |
textColor: ReveloTheme.of(context).highEmphasisColor, | |
border: Border.all(color: ReveloTheme.of(context).chipOutlineColor), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment