AntdBoxStyle class

盒子样式 @l AntdBox

Inheritance
Available extensions

Constructors

AntdBoxStyle.new({bool inherit = true, EdgeInsets? padding, EdgeInsets? margin, double? opacity, Color? color, Border? border, BorderRadius? radius, TextStyle? textStyle, double? height, double? minHeight, double? width, double? minWidth, double? size, List<AntdBoxLayoutMode>? layoutModes, double? backdropFilter, List<BoxShadow>? shadows, Gradient? gradient, Alignment? alignment, AntdVisibility? visibility, AntdHapticFeedback? hapticFeedback, ColorFilter? colorFilter, AntdKitStyle? focusStyle, AntdKitStyle? disabledStyle, AntdKitStyle? feedbackStyle, AntdTapOptions? options})
const

Properties

alignment Alignment?
子容器的对齐方式
finalinherited
backdropFilter double?
毛玻璃效果
finalinherited
border Border?
边框
finalinherited
color Color?
背景色
finalinherited
colorFilter ColorFilter?
颜色过滤
finalinherited
disabledStyle AntdKitStyle?
禁用后的样式 @lAntdBox
final
feedbackStyle AntdKitStyle?
激活后的样式 @lAntdBox
final
focusStyle AntdKitStyle?
获取焦点后的样式 @lAntdBox
final
gradient Gradient?
渐变
finalinherited
hapticFeedback AntdHapticFeedback?
震动反馈
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasSize bool
no setterinherited
height double?
高度
finalinherited
inherit bool
是否继承样式,如果为false则不会向上合并其他的样式
finalinherited
layoutModes List<AntdBoxLayoutMode>?
布局行为模式
finalinherited
margeSize Size
no setterinherited
margin EdgeInsets?
外边距
finalinherited
minHeight double?
最小高度
finalinherited
minWidth double?
最小宽度
finalinherited
opacity double?
透明度
finalinherited
options AntdTapOptions?
触摸配置 优先级低于AntdBox上的options
final
padding EdgeInsets?
内边距
finalinherited
radius BorderRadius?
圆角
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows List<BoxShadow>?
阴影
finalinherited
size double?
统一尺寸(同时影响 width/height,优先级最低)
finalinherited
textStyle TextStyle?
共享的Text样式
finalinherited
visibility AntdVisibility?
可见状态
finalinherited
width double?
宽度
finalinherited

Methods

buildSize([Widget? child]) Widget?
inherited
copyFrom(covariant AntdBoxStyle? style) AntdBoxStyle
override
copyWith({EdgeInsets? padding, EdgeInsets? margin, double? opacity, Color? color, Border? border, BorderRadius? radius, TextStyle? textStyle, double? height, double? minHeight, double? width, double? minWidth, double? size, bool expand = false, bool shrink = false, List<AntdBoxLayoutMode>? layoutModes, double? backdropFilter, List<BoxShadow>? shadows, Gradient? gradient, Alignment? alignment, AntdVisibility? visibility, AntdHapticFeedback? hapticFeedback, AntdKitStyle? focusStyle, AntdKitStyle? disabledStyle, AntdKitStyle? feedbackStyle, ColorFilter? colorFilter, AntdTapOptions? options}) AntdBoxStyle
override
merge(T? other) → T?

Available on T?, provided by the StyleExtensions extension

mergeActive(T? defaultStyle, T? tdStyle, T? tdaStyle) → T?

Available on T?, provided by the StyleExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overFrom(covariant AntdKitStyle? style) AntdBoxStyle
render([Widget? child]) Widget
inherited
toString() String
A string representation of this object.
inherited

Operators

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