GFBadge constructor

const GFBadge({
  1. Key? key,
  2. TextStyle? textStyle,
  3. ShapeBorder? borderShape,
  4. GFBadgeShape shape = GFBadgeShape.standard,
  5. Color color = GFColors.DANGER,
  6. Color textColor = GFColors.WHITE,
  7. double size = GFSize.SMALL,
  8. BorderSide? border,
  9. String? text,
  10. Widget? child,
})

Create badges of all types, check out GFButtonBadge for button badges and GFIconBadge for icon type badges

Implementation

const GFBadge({
  Key? key,
  this.textStyle,
  this.borderShape,
  this.shape = GFBadgeShape.standard,
  this.color = GFColors.DANGER,
  this.textColor = GFColors.WHITE,
  this.size = GFSize.SMALL,
  this.border,
  this.text,
  this.child,
}) : super(key: key);