thinking_orbs library

Thinking Orbs - dotted thought-orb loading indicators for AI & agent UIs. Six tuned states, two sizes, auto dark/light.

Quick start:

import 'package:thinking_orbs_flutter/thinking_orbs.dart';

ThinkingOrb(state: OrbState.searching, size: OrbSize.large)

Classes

OrbPainter
The CustomPainter that draws a single ThinkingOrb frame.
Resolved
The fully resolved configuration for a (state, size) pair.
ThinkingOrb
A dotted "thought-orb" loading indicator for AI & agent UIs.

Enums

OrbSize
Tuned size presets.
OrbState
The six shipped states - each a hand-tuned animation:
OrbTheme
Theme mode.

Properties

modeDraws → Map<String, ModeDraw>
Maps each mode key to its frame draw function.
final
stateToMode → Map<OrbState, String>
Maps a public OrbState to its internal mode key.
final

Functions

resolvePreset(OrbState state, OrbSize size) → Resolved
Resolve a (state, size) pair to its mode + fully-scaled draw options.

Typedefs

ModeOpts = Map<String, double>
Open bag of optional numbers that parameterize a mode's draw function.