BubbleBox class

气泡框组件 注意,在ListView中,每一个子组件都强制充满宽度,需要用其他可确认宽度的组件包裹该组件,例如RowColumn,否则该组件也将被强制填充宽度

Inheritance

Constructors

BubbleBox({Key? key, required Widget child, Color? backgroundColor, double? maxWidth, double? maxHeight, double? widthFactor, double? heightFactor, double elevation = 0.0, Color? shadowColor, Gradient? gradient, BlendMode blendMode = BlendMode.dstATop, EdgeInsets? margin, EdgeInsets padding = const EdgeInsets.all(8), ShapeBorder? shape})

Properties

backgroundColor Color?
气泡背景颜色
final
blendMode BlendMode
渐变合成模式,默认叠加于背景颜色之上,内容之下
final
child Widget
子组件
final
elevation double
阴影
final
gradient Gradient?
渐变,基于混合模式,可以设置背景或者内容
final
hashCode int
The hash code for this object.
no setterinherited
heightFactor double?
这是一个FractionallySizedBox对象属性的快捷方式
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets?
基于基础内边距的距离边框外边距
final
maxHeight double?
如果外层是一个不确定高度的父组件,则设置基于LimitedBox最大高大小
final
maxWidth double?
如果外层是一个不确定宽度的父组件,则设置基于LimitedBox最大宽度大小
final
padding EdgeInsets
基于基础内边距的距离边框内边距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
阴影颜色
final
shape ShapeBorder?
定义材质的形状 如果为空,则默认使用BubbleShapeBorder
final
widthFactor double?
如果外层是一个固定宽度的父组件,则设置基于FractionallySizedBox最大宽度因子
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