TonalAlert class
Constructors
TonalAlert ({Key ? key , bool visible = true , ValueChanged <bool > ? onChanged , AlertTransitionBuilder ? transitionBuilder = AlertTransition.crossFade , AlertLayoutBuilder layoutBuilder = AlertLayout.defaults , Widget ? title , Widget ? message , Widget ? icon , Widget ? action , AlertSeverity ? severity , EdgeInsetsGeometry ? margin , EdgeInsetsGeometry ? padding , double ? spacing , double ? elevation , BorderRadius ? borderRadius , double ? iconSize , AlertStyle ? style , Curve ? curve , Duration ? duration })
const
TonalAlert.danger ({Key ? key , bool visible = true , ValueChanged <bool > ? onChanged , AlertTransitionBuilder ? transitionBuilder = AlertTransition.crossFade , AlertLayoutBuilder layoutBuilder = AlertLayout.defaults , Widget ? title , Widget ? message , Widget ? icon = AlertIcons.danger , Widget ? action , EdgeInsetsGeometry ? margin , EdgeInsetsGeometry ? padding , double ? spacing , double ? elevation , BorderRadius ? borderRadius , double ? iconSize , AlertStyle ? style , Curve ? curve , Duration ? duration })
const
TonalAlert.info ({Key ? key , bool visible = true , ValueChanged <bool > ? onChanged , AlertTransitionBuilder ? transitionBuilder = AlertTransition.crossFade , AlertLayoutBuilder layoutBuilder = AlertLayout.defaults , Widget ? title , Widget ? message , Widget ? icon = AlertIcons.info , Widget ? action , EdgeInsetsGeometry ? margin , EdgeInsetsGeometry ? padding , double ? spacing , double ? elevation , BorderRadius ? borderRadius , double ? iconSize , AlertStyle ? style , Curve ? curve , Duration ? duration })
const
TonalAlert.success ({Key ? key , bool visible = true , ValueChanged <bool > ? onChanged , AlertTransitionBuilder ? transitionBuilder = AlertTransition.crossFade , AlertLayoutBuilder layoutBuilder = AlertLayout.defaults , Widget ? title , Widget ? message , Widget ? icon = AlertIcons.success , Widget ? action , EdgeInsetsGeometry ? margin , EdgeInsetsGeometry ? padding , double ? spacing , double ? elevation , BorderRadius ? borderRadius , double ? iconSize , AlertStyle ? style , Curve ? curve , Duration ? duration })
const
TonalAlert.warning ({Key ? key , bool visible = true , ValueChanged <bool > ? onChanged , AlertTransitionBuilder ? transitionBuilder = AlertTransition.crossFade , AlertLayoutBuilder layoutBuilder = AlertLayout.defaults , Widget ? title , Widget ? message , Widget ? icon = AlertIcons.warning , Widget ? action , EdgeInsetsGeometry ? margin , EdgeInsetsGeometry ? padding , double ? spacing , double ? elevation , BorderRadius ? borderRadius , double ? iconSize , AlertStyle ? style , Curve ? curve , Duration ? duration })
const
Properties
action
→ Widget ?
Widget displayed next to title
final inherited
borderRadius
→ BorderRadius ?
The radii for each corner of the alert's border.
final inherited
curve
→ Curve ?
The curve to apply when animating the parameters of this widget.
final inherited
duration
→ Duration ?
The duration over which to animate the parameters of this widget.
final inherited
effectiveStyle
→ AlertStyle
no setter inherited
elevation
→ double ?
The alert's z-coordinate relative to
the parent at which to place this physical object.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
icon
→ Widget ?
Icon displayed prior to title
final inherited
iconSize
→ double ?
The size of the icon's inside the alert, in logical pixels.
final inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
layoutBuilder
→ AlertLayoutBuilder
A function that wraps all of the children that are transitioning out, and the child
that's transitioning in, with a widget that lays all of them out. This is called every time this widget is built. The function must not return null.
final inherited
margin
→ EdgeInsetsGeometry ?
Empty space to surround the outside alert.
final inherited
message
→ Widget ?
The text to display below the title
final inherited
onChanged
→ ValueChanged <bool > ?
Called when the alert should change
between visible and hidden states.
final inherited
padding
→ EdgeInsetsGeometry ?
The padding between the contents of the alert and the outside alert.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
severity
→ AlertSeverity ?
Type of the alert severity
final inherited
spacing
→ double ?
How much space to place between alert's foreground widget in a run in the main axis.
final inherited
style
→ AlertStyle ?
The style to be applied to the alert.
final inherited
title
→ Widget ?
The primary content of the Alert .
final inherited
transitionBuilder
→ AlertTransitionBuilder ?
A function that wraps a new content
with an animation that transitions the content
in when the animation runs in the forward direction and out when the animation runs in the reverse direction. This is only called when a new content
is set (not for each build), or when a new transitionBuilder is set. If a new transitionBuilder is set, then the transition is rebuilt for the current content and all previous children using the new transitionBuilder . The function must not return null.
final inherited
variant
→ AlertVariant ?
Type of the alert variant
no setter override
visible
→ bool
Whether or not this alert is visible.
final inherited