RistoNoticeCard constructor
const
RistoNoticeCard({
- Key? key,
- required RistoNoticeKind kind,
- String? title,
- String? subtitle,
- List<
InlineSpan> ? subtitleSpan, - int titleMaxLines = 2,
- int subtitleMaxLines = 10,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- bool compact = false,
- bool showClose = false,
- VoidCallback? onClose,
- bool invert = false,
- Color? accentColor,
- Widget? noticeIcon,
- EdgeInsetsGeometry? iconPadding,
- Color? backgroundColor,
- Gradient? backgroundGradient,
- Color? borderColor,
- double borderWidth = 1.0,
- double borderOpacity = 0.5,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- double? elevation,
- Color? shadowColor,
- double? width,
- double? minWidth,
- double? maxWidth,
- double? height,
- double? minHeight,
- double? maxHeight,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- 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,
});