NavbarBadge constructor
const
NavbarBadge({
- Key? key,
- String badgeText = "",
- bool showBadge = false,
- Duration animationDuration = const Duration(milliseconds: 500),
- Color? color = Colors.white,
- Color? textColor,
- BadgeStyle badgeStyle = const BadgeStyle(),
- BadgeAnimation? badgeAnimation = const BadgeAnimation.slide(),
- BadgePosition? position,
- bool ignorePointer = false,
- StackFit stackFit = StackFit.loose,
- dynamic onTap()?,
- Widget? badgeContent,
- 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,
});