CircularPercentIndicator class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CircularPercentIndicator
Constructors
- CircularPercentIndicator({Key? key, PercentModel percentModel = PercentModel.normal, AnimationSet animationSet = AnimationSet.normal, double startAngle = 0.0, required double size, LineModel progressModel = LineModel.progressModel, LineModel backgroundModel = LineModel.backModel, LinearGradient? linearGradient, Widget? center, bool addAutomaticKeepAlive = true, StrokeCap? strokeCap, ArcType arcType = ArcType.FULL, bool reverse = false, MaskFilter? maskFilter, bool rotateLinearGradient = false})
Properties
- addAutomaticKeepAlive → bool
-
保存状态,避免重复绘制,默认true
final
- animationSet → AnimationSet
-
动画设置
final
- arcType → ArcType
-
展示圆角弧度类型,默认全圆
final
- backgroundModel → LineModel
-
背景线条设置
final
- center → Widget?
-
中间显示widget
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- linearGradient → LinearGradient?
-
线型渐变,设置会覆盖progressModel的颜色设置
final
- maskFilter → MaskFilter?
-
Creates a mask filter that takes the progress shape being drawn and blurs it.
final
- percentModel → PercentModel
-
通用设置
final
- progressModel → LineModel
-
进度线条设置
final
- reverse → bool
-
是否是逆时针绘制?默认false正时针
final
- rotateLinearGradient → bool
-
LinearGradient设置的时候,是否是扫描渐变模式【可以自行查看SweepGradient】,对线条越粗,铺满的饼状图效果会比较好,细条进度可以忽略不用设置
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
尺寸,宽高
final
- startAngle → double
-
开始角度。需为正数默认0,顺时针为正方向 (eg:0.0, 45.0, 90.0)
final
- strokeCap → StrokeCap?
-
在线条末端的一种收尾方式
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CircularPercentIndicatorState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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