BrnShadowCard class

常见的阴影卡片,减少了冗余代码

在此组件的基础上,用户可以参考BoxShadow的参数来合理的设置阴影效果offsetspreadRadiusspreadRadius

和系统的Card组件相似,是对Container组件的封装

Inheritance
Available Extensions

Constructors

BrnShadowCard({required Widget child, Color color = const Color(0xfffafafa), Color shadowColor = const Color(0xffeeeeee), EdgeInsetsGeometry padding = const EdgeInsets.all(0), double circular = 4.0, double blurRadius = 5.0, double spreadRadius = 0, Offset offset = Offset.zero, double borderWidth = 0.5})
create BrnShadowCard

Properties

blurRadius double
阴影模糊程度 默认5.0
final
borderWidth double
边框的宽度 默认0.5
final
child Widget
子 Widget
final
circular double
圆角 默认4.0
final
color Color
背景色 默认Color(0xfffafafa)
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
offset Offset
阴影偏移量 默认是0
final
padding EdgeInsetsGeometry
内边距 默认是0
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color
阴影颜色 默认Color(0xffeeeeee)
final
spreadRadius double
阴影扩散程度 默认0
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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