StacCircularProgressIndicator class
A Stac model representing Flutter's CircularProgressIndicator widget.
Displays a circular progress indicator. Can be determinate when value is provided (0.0 to 1.0), or indeterminate when value is null.
{@tool snippet} Dart Example:
StacCircularProgressIndicator(
value: 0.5,
color: StacColors.blue,
strokeWidth: 4.0,
)
{@end-tool}
{@tool snippet} JSON Example:
{
"type": "circularProgressIndicator",
"value": 0.5,
"color": "#2196F3",
"strokeWidth": 4.0
}
{@end-tool}
See also:
- Flutter's CircularProgressIndicator documentation (
https://api.flutter.dev/flutter/material/CircularProgressIndicator-class.html)
- Inheritance
-
- Object
- StacElement
- StacWidget
- StacCircularProgressIndicator
- Available extensions
- Annotations
-
- @JsonSerializable.new()
Constructors
- StacCircularProgressIndicator({double? value, StacColor? backgroundColor, StacColor? color, double? strokeWidth, double? strokeAlign, String? semanticsLabel, String? semanticsValue, StacStrokeCap? strokeCap})
-
Creates a StacCircularProgressIndicator.
const
-
StacCircularProgressIndicator.fromJson(Map<
String, dynamic> json) -
Creates a StacCircularProgressIndicator from a JSON map.
factory
Properties
- backgroundColor → StacColor?
-
Background color of the circular track.
final
- color → StacColor?
-
Foreground color of the progress indicator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonData
→ Map<
String, dynamic> ? -
Raw JSON data for this widget
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsLabel → StacColor?
-
Semantics label for accessibility.
final
- semanticsValue → StacColor?
-
Semantics value for accessibility.
final
- strokeAlign → double?
-
Align of the stroke within the track.
final
- strokeCap → StacStrokeCap?
-
Stroke line cap style.
final
- strokeWidth → double?
-
Width of the circular progress stroke.
final
- type → String
-
Widget type identifier.
no setteroverride
- value → double?
-
Progress value from 0.0 to 1.0 for determinate mode; null for indeterminate.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
BuildContext context) → Widget? -
Available on StacWidget?, provided by the StacWidgetParser extension
-
parsePreferredSizeWidget(
BuildContext context) → PreferredSizeWidget? -
Available on StacWidget?, provided by the StacWidgetParser extension
Parses a widget for a slot that needs a PreferredSizeWidget, such as a scaffold'sappBaror an app bar'sbottom. -
toJson(
) → Map< String, dynamic> -
Converts this StacCircularProgressIndicator instance to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited