TextBadge constructor

const TextBadge({
  1. Key? key,
  2. required String text,
  3. Color? backgroundColor,
  4. Color? textColor,
  5. double fontSize = 12,
  6. double borderRadius = 8,
  7. double verticalPadding = 5,
  8. double horizontalPadding = 6,
  9. Widget? rightWidget,
  10. void onTap()?,
  11. BoxBorder? boder,
})

Implementation

const TextBadge({
  Key? key,
  required this.text,
  this.backgroundColor,
  this.textColor,
  this.fontSize = 12,
  this.borderRadius = 8,
  this.verticalPadding = 5,
  this.horizontalPadding = 6,
  this.rightWidget,
  this.onTap,
  this.boder,
}) : super(key: key);