RistoNoticeCard class
A standardized, highly customizable card used to display semantic notices.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RistoNoticeCard
Constructors
-
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}) -
const
-
RistoNoticeCard.empty({Key? key, String? title, String? subtitle, List<
InlineSpan> ? subtitleSpan, bool compact = false, bool showClose = false, VoidCallback? onClose, bool invert = false, 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, TextStyle? titleStyle, TextStyle? subtitleStyle, double? runSpacing}) -
factory
-
RistoNoticeCard.error({Key? key, String? title, String? subtitle, List<
InlineSpan> ? subtitleSpan, bool compact = false, bool showClose = false, VoidCallback? onClose, bool invert = false, 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, TextStyle? titleStyle, TextStyle? subtitleStyle, double? runSpacing}) -
factory
-
RistoNoticeCard.info({Key? key, String? title, String? subtitle, List<
InlineSpan> ? subtitleSpan, bool compact = false, bool showClose = false, VoidCallback? onClose, bool invert = false, 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, TextStyle? titleStyle, TextStyle? subtitleStyle, double? runSpacing}) -
factory
-
RistoNoticeCard.neutral({Key? key, String? title, String? subtitle, List<
InlineSpan> ? subtitleSpan, bool compact = false, bool showClose = false, VoidCallback? onClose, bool invert = false, 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, TextStyle? titleStyle, TextStyle? subtitleStyle, double? runSpacing}) -
factory
-
RistoNoticeCard.success({Key? key, String? title, String? subtitle, List<
InlineSpan> ? subtitleSpan, bool compact = false, bool showClose = false, VoidCallback? onClose, bool invert = false, 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, TextStyle? titleStyle, TextStyle? subtitleStyle, double? runSpacing}) -
factory
-
RistoNoticeCard.warning({Key? key, String? title, String? subtitle, List<
InlineSpan> ? subtitleSpan, bool compact = false, bool showClose = false, VoidCallback? onClose, bool invert = false, 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, TextStyle? titleStyle, TextStyle? subtitleStyle, double? runSpacing}) -
factory
Properties
- accentColor → Color?
-
final
- backgroundColor → Color?
-
final
- backgroundGradient → Gradient?
-
final
- borderColor → Color?
-
final
- borderOpacity → double
-
final
- borderRadius → BorderRadiusGeometry?
-
final
- borderWidth → double
-
final
- compact → bool
-
final
- crossAxisAlignment → CrossAxisAlignment
-
final
- elevation → double?
-
final
-
final
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- iconPadding → EdgeInsetsGeometry?
-
Padding applied specifically around the icon.
final
- invert → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- kind → RistoNoticeKind
-
final
- mainAxisAlignment → MainAxisAlignment
-
final
- margin → EdgeInsetsGeometry?
-
final
- maxHeight → double?
-
final
- maxWidth → double?
-
final
- minHeight → double?
-
final
- minWidth → double?
-
final
- noticeIcon → Widget?
-
final
- onClose → VoidCallback?
-
final
- padding → EdgeInsetsGeometry?
-
The internal padding between the card's edges and its content.
final
- runSpacing → double?
-
The unified vertical spacing between the icon, title, subtitle, and footer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
final
- showClose → bool
-
final
- subtitle → String?
-
final
- subtitleMaxLines → int
-
final
-
subtitleSpan
→ List<
InlineSpan> ? -
final
- subtitleStyle → TextStyle?
-
final
- title → String?
-
final
- titleMaxLines → int
-
final
- titleStyle → TextStyle?
-
final
- width → double?
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited