NavbarBadge constructor

const NavbarBadge({
  1. Key? key,
  2. String badgeText = "",
  3. bool showBadge = false,
  4. Duration animationDuration = const Duration(milliseconds: 500),
  5. Color? color = Colors.white,
  6. Color? textColor,
  7. BadgeStyle badgeStyle = const BadgeStyle(),
  8. BadgeAnimation? badgeAnimation = const BadgeAnimation.slide(),
  9. BadgePosition? position,
  10. bool ignorePointer = false,
  11. StackFit stackFit = StackFit.loose,
  12. dynamic onTap()?,
  13. Widget? badgeContent,
  14. TextStyle? badgeTextStyle,
})

Use padding of badgeStyle or fontSize of badgeTextStyle to change size of the badge/dot.

Implementation

const NavbarBadge({
  this.key,
  this.badgeText = "",
  this.showBadge = false,
  this.animationDuration = const Duration(milliseconds: 500),
  this.color = Colors.white,
  this.textColor,
  this.badgeStyle = const BadgeStyle(),
  this.badgeAnimation = const BadgeAnimation.slide(),
  this.position,
  this.ignorePointer = false,
  this.stackFit = StackFit.loose,
  this.onTap,
  this.badgeContent,
  this.badgeTextStyle,
});