SemicircularIndicator class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SemicircularIndicator
Constructors
- SemicircularIndicator({double radius = 120, double strokeWidth = 16, double progress = 0.75, Color backgroundColor = Colors.black26, Color color = Colors.green, StrokeCap strokeCap = StrokeCap.round, Widget? child, bool userDefaultChildPosition = true, double bottomPadding = 0, bool contain = false, Key? key})
-
const
Properties
- backgroundColor → Color
-
indicator's background color, default Colors.black26
进度条的背景色,默认 Colors.black26
final
- bottomPadding → double
-
child widget's bottom padding,
only be used when userDefaultChildPosition is true, default 0
child 组件的底部间距,默认是0,只有在 userDefaultChildPosition 为 true 时有效
final
- child → Widget?
-
child widget used to stacked on indicator's top, such as number,
Positioned widget is enable.
叠加在进度条上面的组件,例如进度条进度数字,
可以使用Positioned进行自定义位置。
final
- color → Color
-
progress's color, default Colors.green
进度条颜色,默认绿色
final
- contain → bool
-
whether the indicator should be contained within the box,
default (false) is on border.
进度条是否完全被完全包裹在容器内部,默认是否(进度条的中线对齐在容器边缘)。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- progress → double
-
indicator's progress, default 0.75
当前进度,默认 0.75
final
- radius → double
-
set indicator's semicircle radius, default 120
设置半圆的半径,默认120
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeCap → StrokeCap
-
Styles to use for line endings, default StrokeCap.round
线条头部的形状,默认圆形
final
- strokeWidth → double
-
line width, default 16
线条宽度,默认16
final
- userDefaultChildPosition → bool
-
whether use default position when layout child position
default position is bottom center
是否对child组件使用默认的位置,
默认是在底部中间
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