ModalStyle class

Style for modal

Constructors

ModalStyle({EdgeInsetsGeometry? titlePadding, TextStyle? titleTextStyle, EdgeInsetsGeometry contentPadding = defaultContentPadding, TextStyle? contentTextStyle, CrossAxisAlignment? textBodyAlignment, EdgeInsetsGeometry actionsPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8), MainAxisAlignment? actionsAlignment, EdgeInsetsGeometry? buttonPadding, BorderSide? actionsSeparator, ActionButtonBuilder? primaryBuilder, ActionButtonBuilder? defaultBuilder, ButtonStyle? primaryButtonStyle, ButtonStyle? defaultButtonStyle, Color? backgroundColor, double? elevation, String? semanticLabel, EdgeInsets insetPadding = defaultInsetPadding, Clip clipBehavior = Clip.none, ShapeBorder? shape, bool scrollable = false, bool expandedAction = false})
const
ModalStyle.separated({EdgeInsetsGeometry? titlePadding, TextStyle? titleTextStyle, EdgeInsetsGeometry? contentPadding, TextStyle? contentTextStyle, CrossAxisAlignment? textBodyAlignment, Color? backgroundColor, double? elevation, String? semanticLabel, EdgeInsets? insetPadding, EdgeInsetsGeometry? buttonPadding, BorderSide? separator, Clip clipBehavior = Clip.none, ShapeBorder? shape, bool? scrollable})

Properties

actionsAlignment MainAxisAlignment?
final
actionsPadding EdgeInsetsGeometry
final
actionsSeparator BorderSide?
final
backgroundColor Color?
final
buttonPadding EdgeInsetsGeometry?
final
clipBehavior Clip
final
contentPadding EdgeInsetsGeometry
final
contentTextStyle TextStyle?
final
defaultBuilder ActionButtonBuilder?
final
defaultButtonStyle ButtonStyle?
final
elevation double?
final
expandedAction bool
final
hashCode int
The hash code for this object.
no setterinherited
insetPadding EdgeInsets
final
primaryBuilder ActionButtonBuilder?
final
primaryButtonStyle ButtonStyle?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool
final
semanticLabel String?
final
shape ShapeBorder?
final
textBodyAlignment CrossAxisAlignment?
final
titlePadding EdgeInsetsGeometry?
final
titleTextStyle TextStyle?
final

Methods

copyWith({EdgeInsetsGeometry? titlePadding, TextStyle? titleTextStyle, EdgeInsetsGeometry? contentPadding, TextStyle? contentTextStyle, CrossAxisAlignment? textBodyAlignment, BorderSide? actionsSeparator, EdgeInsetsGeometry? actionsPadding, MainAxisAlignment? actionsAlignment, VerticalDirection? actionsOverflowDirection, double? actionsOverflowButtonSpacing, EdgeInsetsGeometry? buttonPadding, ActionButtonBuilder? primaryBuilder, ActionButtonBuilder? defaultBuilder, ButtonStyle? primaryButtonStyle, ButtonStyle? defaultButtonStyle, Color? backgroundColor, double? elevation, String? semanticLabel, EdgeInsets? insetPadding, Clip? clipBehavior, ShapeBorder? shape, bool? scrollable, bool? expandedAction}) ModalStyle
Creates a copy of this style but with the given fields replaced with the new values.
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

Static Methods

lerp(ModalStyle? a, ModalStyle? b, double t) ModalStyle
lerp ModalStyle