VAlertConfig class

@author: wzp_vicky @time: 2023年9月14日08:13:05 @version: V1.1 @description: 这里是写给alert的样式 @use:AnimationTransition.fromRight(animation, secondaryAnimation, child);

Constructors

VAlertConfig.new({AnimationType animationType = AnimationType.fromBottom, Duration animationDuration = const Duration(milliseconds: 200), ShapeBorder? alertBorder, bool isButtonVisible = true, bool isCloseButton = true, bool isOverlayTapDismiss = true, Color? backgroundColor, Color overlayColor = Colors.black87, TextStyle titleStyle = const TextStyle(color: Colors.black, fontSize: 15, fontWeight: FontWeight.bold, fontStyle: FontStyle.normal), TextAlign titleTextAlign = TextAlign.center, TextStyle descStyle = const TextStyle(fontSize: 13, color: Colors.black, decoration: TextDecoration.none), TextAlign descTextAlign = TextAlign.center, EdgeInsets buttonAreaPadding = const EdgeInsets.all(0), BoxConstraints? constraints, ButtonsDirection buttonsDirection = ButtonsDirection.row, double? alertElevation, EdgeInsets alertPadding = defaultAlertPadding, AlignmentGeometry alertAlignment = Alignment.center, bool isTitleSelectable = false, bool isDescSelectable = false, EdgeInsets? titlePadding, EdgeInsets descPadding = const EdgeInsets.all(0.0), Border? buttonBorder, bool hasBorder = false, String borderColor = "#f2f2f2"})
const

Properties

alertAlignment AlignmentGeometry
final
alertBorder ShapeBorder?
final
alertElevation double?
final
alertPadding EdgeInsets
final
animationDuration Duration
final
animationType AnimationType
final
backgroundColor Color?
final
borderColor String
final
buttonAreaPadding EdgeInsets
final
buttonBorder Border?
final
buttonsDirection ButtonsDirection
final
constraints BoxConstraints?
final
descPadding EdgeInsets
final
descStyle TextStyle
final
descTextAlign TextAlign
final
hasBorder bool
final
hashCode int
The hash code for this object.
no setterinherited
isButtonVisible bool
final
isCloseButton bool
final
isDescSelectable bool
final
isOverlayTapDismiss bool
final
isTitleSelectable bool
final
overlayColor Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titlePadding EdgeInsets?
final
titleStyle TextStyle
final
titleTextAlign TextAlign
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited