RistoNoticeCard constructor

const RistoNoticeCard({
  1. Key? key,
  2. required RistoNoticeKind kind,
  3. String? title,
  4. String? subtitle,
  5. List<InlineSpan>? subtitleSpan,
  6. int titleMaxLines = 2,
  7. int subtitleMaxLines = 10,
  8. TextStyle? titleStyle,
  9. TextStyle? subtitleStyle,
  10. RistoFooterBuilder? footerBuilder,
  11. AlignmentGeometry? footerAlignment,
  12. EdgeInsetsGeometry? footerPadding,
  13. bool compact = false,
  14. bool showClose = false,
  15. VoidCallback? onClose,
  16. bool invert = false,
  17. Color? accentColor,
  18. Widget? noticeIcon,
  19. EdgeInsetsGeometry? iconPadding,
  20. Color? backgroundColor,
  21. Gradient? backgroundGradient,
  22. Color? borderColor,
  23. double borderWidth = 1.0,
  24. double borderOpacity = 0.5,
  25. BorderRadiusGeometry? borderRadius,
  26. EdgeInsetsGeometry? padding,
  27. EdgeInsetsGeometry? margin,
  28. double? elevation,
  29. Color? shadowColor,
  30. double? width,
  31. double? minWidth,
  32. double? maxWidth,
  33. double? height,
  34. double? minHeight,
  35. double? maxHeight,
  36. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  37. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  38. double? runSpacing,
})

Implementation

const RistoNoticeCard({
  super.key,
  required this.kind,
  this.title,
  this.subtitle,
  this.subtitleSpan,
  this.titleMaxLines = 2,
  this.subtitleMaxLines = 10,
  this.titleStyle,
  this.subtitleStyle,
  this.footerBuilder,
  this.footerAlignment,
  this.footerPadding,
  this.compact = false,
  this.showClose = false,
  this.onClose,
  this.invert = false,
  this.accentColor,
  this.noticeIcon,
  this.iconPadding,
  this.backgroundColor,
  this.backgroundGradient,
  this.borderColor,
  this.borderWidth = 1.0,
  this.borderOpacity = 0.5,
  this.borderRadius,
  this.padding,
  this.margin,
  this.elevation,
  this.shadowColor,
  this.width,
  this.minWidth,
  this.maxWidth,
  this.height,
  this.minHeight,
  this.maxHeight,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.runSpacing,
});