MoonAlert class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MoonAlert
Constructors
- MoonAlert({Key? key, bool show = false, bool showBorder = false, BorderRadiusGeometry? borderRadius, Color? backgroundColor, Color? borderColor, Color? color, double? borderWidth, double? horizontalGap, double? minimumHeight, double? verticalGap, Duration? transitionDuration, Curve? transitionCurve, EdgeInsetsGeometry? padding, Decoration? decoration, String? semanticLabel, Widget? leading, required Widget label, Widget? trailing, Widget? content})
-
Creates a Moon Design base alert.
const
- MoonAlert.filled({Key? key, bool show = false, BorderRadiusGeometry? borderRadius, Color? color, required Color? backgroundColor, String? semanticLabel, Widget? leading, required Widget label, Widget? trailing, Widget? content})
-
Creates a Moon Design filled alert.
const
- MoonAlert.outlined({Key? key, bool show = false, BorderRadiusGeometry? borderRadius, double? borderWidth, Color? color, required Color? borderColor, String? semanticLabel, Widget? leading, required Widget label, Widget? trailing, Widget? content})
-
Creates a Moon Design outlined alert.
const
Properties
- backgroundColor → Color?
-
The background color of the alert.
final
- borderColor → Color?
-
The border color of the alert.
final
- borderRadius → BorderRadiusGeometry?
-
The border radius of the alert.
final
- borderWidth → double?
-
The border width of the alert.
final
- color → Color?
-
The text and icon color of the alert.
final
- content → Widget?
-
The widget to display below the alert header.
final
- decoration → Decoration?
-
The custom decoration of the alert.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalGap → double?
-
The horizontal gap between the leading, label and trailing widgets of the alert.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget
-
The primary content of the alert header.
final
- leading → Widget?
-
The widget to display before the label widget of the alert.
final
- minimumHeight → double?
-
The minimum height of the alert.
final
- padding → EdgeInsetsGeometry?
-
The padding of the alert.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
The semantic label for the alert.
final
- show → bool
-
Whether to show the alert.
final
- showBorder → bool
-
Whether to show a border around the alert.
final
- trailing → Widget?
-
The widget to display after the label widget of the alert.
final
- transitionCurve → Curve?
-
The curve of the alert transition animation (fade in or out).
final
- transitionDuration → Duration?
-
The duration of the alert transition animation (fade in or out).
final
- verticalGap → double?
-
The vertical gap between the alert header and content.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MoonAlert> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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}) → 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