AntdKitStyle class

基础样式 @l AntdBox

Inheritance
Implementers
Available extensions

Constructors

AntdKitStyle({bool inherit = true, EdgeInsets? padding, EdgeInsets? margin, double? opacity, Color? color, Border? border, BorderRadius? radius, TextStyle? textStyle, double? height, double? width, BoxConstraints? constraints, double? size, List<AntdBoxLayoutMode>? layoutModes, double? backdropFilter, List<BoxShadow>? shadows, Gradient? gradient, Alignment? alignment, AntdVisibility? visibility, AntdHapticFeedback? hapticFeedback, ColorFilter? colorFilter})
const

Properties

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

Methods

buildSize([Widget? child]) → Widget?
copyFrom(covariant AntdKitStyle? style) → AntdKitStyle
override
copyWith({EdgeInsets? padding, EdgeInsets? margin, double? opacity, Color? color, Border? border, BorderRadius? radius, TextStyle? textStyle, double? height, double? width, BoxConstraints? constraints, double? size, bool expand = false, bool shrink = false, List<AntdBoxLayoutMode>? layoutModes, double? backdropFilter, List<BoxShadow>? shadows, Gradient? gradient, Alignment? alignment, AntdVisibility? visibility, AntdHapticFeedback? hapticFeedback, ColorFilter? colorFilter}) → AntdKitStyle
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
render([Widget? child]) → Widget
toDebugString() → String
toString() → String
A string representation of this object.
override

Operators

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