Richbar<T> constructor
Richbar<T> ({
- Key? key,
- String? title,
- double? titleFontSize,
- Alignment? titleAlignment = Alignment.topLeft,
- FontWeight titleFontWeight = FontWeight.w300,
- Color? titleTextColor = defaultTextColor,
- String? text = "Dismiss",
- double? textFontSize,
- bool? showPulse = true,
- Color? textColor = defaultTextColor,
- VoidCallback? onPressed,
- Color? blockInteractionColor = Colors.transparent,
- FontWeight? textFontWeight,
- Color? backgroundColor = defaultBackgroundColor,
- Color? actionColor,
- OnTap? onPanDown,
- Duration? duration,
- bool? isDismissible = false,
- double? maxWidth,
- EdgeInsets margin = const EdgeInsets.symmetric(),
- EdgeInsets padding = const EdgeInsets.all(15),
- BorderRadius? borderRadius,
- RichbarPosition richbarPosition = RichbarPosition.top,
- RichbarDimissibleDirection richbarDimissibleDirection = RichbarDimissibleDirection.vertical,
- RicharStyle richbarStyle = RicharStyle.floating,
- Curve showCurve = Curves.easeOutCirc,
- Curve dismissCurve = Curves.easeOutCirc,
- double blur = 0.5,
- bool enableBackgroundInteraction = false,
- RichbarStatusCallback? onStatusChanged,
- RichbarRoute<
T?> ? richbarRoute,
Implementation
Richbar({
Key? key,
this.title,
this.titleFontSize,
this.titleAlignment = Alignment.topLeft,
this.titleFontWeight = FontWeight.w300,
this.titleTextColor = defaultTextColor,
this.text = "Dismiss",
this.textFontSize,
this.showPulse = true,
this.textColor = defaultTextColor,
this.onPressed,
this.blockInteractionColor = Colors.transparent,
this.textFontWeight,
this.backgroundColor = defaultBackgroundColor,
this.actionColor,
this.onPanDown,
this.duration,
this.isDismissible = false,
this.maxWidth,
this.margin = const EdgeInsets.symmetric(),
this.padding = const EdgeInsets.all(15),
this.borderRadius,
this.richbarPosition = RichbarPosition.top,
this.richbarDimissibleDirection = RichbarDimissibleDirection.vertical,
this.richbarStyle = RicharStyle.floating,
this.showCurve = Curves.easeOutCirc,
this.dismissCurve = Curves.easeOutCirc,
this.blur = 0.5,
this.enableBackgroundInteraction = false,
RichbarStatusCallback? onStatusChanged,
this.richbarRoute,
// ignore: prefer_initializing_formals
}) : onStatusChanged = onStatusChanged,
super(key: key) {
onStatusChanged = onStatusChanged ?? (status) {};
}