Richbar<T> constructor
Richbar<T> (
- String text, {
- Key? key,
- Icon? leading,
- double opacity = 0.5,
- double? maxWidth,
- OnTap? onPressed,
- BorderRadius? borderRadius,
- bool? showPulse = true,
- double? textSize = kfontSize,
- Duration? duration = kDuration,
- Color? textColor = kTextColor,
- bool? isDismissible = false,
- double backgroundOpaque = 0.5,
- Curve showCurve = Curves.easeIn,
- Curve dismissCurve = Curves.easeInOut,
- TextAlign? textAlignment = TextAlign.left,
- Color? backgroundColor = kBackgroundColor,
- FontWeight? textFontWeight = FontWeight.normal,
- Color? blockInteractionColor = kTransparentColor,
- EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(),
- EdgeInsetsGeometry? padding = const EdgeInsets.all(8),
- RichbarStyle richbarStyle = RichbarStyle.floating,
- bool enableBackgroundInteraction = false,
- RichbarPosition richbarPosition = RichbarPosition.top,
- DismissableDirection? dismissableDirection = DismissableDirection.horizontal,
- RichbarStatusCallback? onStatusChanged,
- RichbarRoute<
T?> ? richbarRoute,
Implementation
Richbar(
String this.text, {
Key? key,
this.leading,
this.opacity = 0.5,
this.maxWidth,
this.onPressed,
this.borderRadius,
this.showPulse = true,
this.textSize = kfontSize,
this.duration = kDuration,
this.textColor = kTextColor,
this.isDismissible = false,
this.backgroundOpaque = 0.5,
this.showCurve = Curves.easeIn,
this.dismissCurve = Curves.easeInOut,
this.textAlignment = TextAlign.left,
this.backgroundColor = kBackgroundColor,
this.textFontWeight = FontWeight.normal,
this.blockInteractionColor = kTransparentColor,
this.margin = const EdgeInsets.symmetric(),
this.padding = const EdgeInsets.all(8),
this.richbarStyle = RichbarStyle.floating,
this.enableBackgroundInteraction = false,
this.richbarPosition = RichbarPosition.top,
this.dismissableDirection = DismissableDirection.horizontal,
this.onStatusChanged,
this.richbarRoute,
}) : super(key: key) {
this.onStatusChanged = onStatusChanged ?? (status) {};
}