MActivityIndicator class

An indeterminate circular activity indicator.

Pair it with MVisibility(bind: MBind('mosaic_refreshing'), ...) to show a spinner while a refresh runs — Mosaic sets that key around the fetch:

MVisibility(
  bind: MBind('mosaic_refreshing'),
  child: const MActivityIndicator(),
  replacement: const MIcon(sfSymbol: 'arrow.clockwise', androidDrawable: 'ic_refresh'),
)

It only animates on Android, where RemoteViews permits an indeterminate ProgressBar. WidgetKit renders static timeline snapshots, so on iOS this draws a non-spinning indicator — the state change is still visible, the motion is not.

Inheritance

Constructors

MActivityIndicator({MColor? color, double size = 20})
const

Properties

color MColor?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited