Skip to content

Instantly share code, notes, and snippets.

Created June 3, 2021 19:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gabrielaraujoz/520cee151509c6c69f1ff32205cbb77f to your computer and use it in GitHub Desktop.
class ReveloBadge extends StatelessWidget {
final String text;
final Color backgroundColor;
final Color textColor;
const ReveloBadge({
Key key,
@required this.text,
@required this.backgroundColor,
}) : super(key: key);
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: BorderRadius.circular(4),
child: Text(
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