Skip to content
On this page

Spinner

An animated indicator for an operation in progress.

Spinner in FluttyUISpinner in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Spinner

const Spinner({
  super.key,
  this.size,
  this.dimension,
  this.color,
  this.rotation = SpinnerRotation.medium,
  this.semanticsLabel = 'Loading',
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
dimensiondouble?Nonull
colorColor?Nonull
rotationSpinnerRotationNoSpinnerRotation.medium
semanticsLabelString?No'Loading'

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/feedbacks/spinner/spinner.dart

This reference is generated from the Spinner declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI