UBadgeWidget constructor
const
UBadgeWidget({
- Key? key,
- Widget? badgeContent,
- Widget? child,
- Color badgeColor = Colors.red,
- double elevation = 2,
- bool toAnimate = true,
- UBadgePosition? position,
- UBadgeShape shape = UBadgeShape.circle,
- EdgeInsetsGeometry padding = const EdgeInsets.all(5),
- Duration animationDuration = const Duration(milliseconds: 500),
- BorderRadiusGeometry borderRadius = BorderRadius.zero,
- AlignmentGeometry alignment = Alignment.center,
- UBadgeAnimationType animationType = UBadgeAnimationType.slide,
- bool showBadge = true,
- bool ignorePointer = false,
- BorderSide borderSide = BorderSide.none,
- StackFit stackFit = StackFit.loose,
- Gradient? gradient,
Implementation
const UBadgeWidget({
super.key,
this.badgeContent,
this.child,
this.badgeColor = Colors.red,
this.elevation = 2,
this.toAnimate = true,
this.position,
this.shape = UBadgeShape.circle,
this.padding = const EdgeInsets.all(5),
this.animationDuration = const Duration(milliseconds: 500),
this.borderRadius = BorderRadius.zero,
this.alignment = Alignment.center,
this.animationType = UBadgeAnimationType.slide,
this.showBadge = true,
this.ignorePointer = false,
this.borderSide = BorderSide.none,
this.stackFit = StackFit.loose,
this.gradient,
});