-
-
Save gabrielaraujoz/520cee151509c6c69f1ff32205cbb77f to your computer and use it in GitHub Desktop.
oldrevelobadge
This file contains hidden or 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 ReveloBadge extends StatelessWidget { | |
final String text; | |
final Color backgroundColor; | |
final Color textColor; | |
const ReveloBadge({ | |
Key key, | |
@required this.text, | |
@required this.backgroundColor, | |
this.textColor, | |
}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), | |
decoration: BoxDecoration( | |
color: backgroundColor, | |
borderRadius: BorderRadius.circular(4), | |
), | |
child: Text( | |
text.toUpperCase(), | |
style: ReveloTheme.of(context).overline.copyWith( | |
color: textColor ?? ReveloColors.white, | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment