unicode_animations library
Pure Dart port of unicode-animations.
Provides 24 Unicode Braille spinner animations.
Classes
- Spinner
- A Unicode spinner animation frame sequence.
Enums
- BrailleSpinnerName
- Names of all available spinners.
Constants
- brailleBase → const int
-
Braille character base codepoint (
U+2800). - brailleSpinner → const Spinner
- Classic Braille spinner: 10 frames rotating through Braille dots.
- brailleWaveSpinner → const Spinner
- Braille wave: 8 frames showing a wave pattern across 4 characters.
- dnaSpinner → const Spinner
- DNA spinner: 12 frames showing a DNA double-helix pattern across 4 characters.
-
dotBits
→ const List<
List< int> > -
Dot bit map: each position
[row][col]maps to a bit in the 8-dot Braille character.
Properties
- breatheSpinner → Spinner
-
Pre-computed breathe spinner.
final
- cascadeSpinner → Spinner
-
Pre-computed cascade spinner.
final
- checkerboardSpinner → Spinner
-
Pre-computed checkerboard spinner.
final
- columnsSpinner → Spinner
-
Pre-computed columns spinner.
final
- compressSpinner → Spinner
-
Pre-computed compress spinner.
final
- diagSwipeSpinner → Spinner
-
Pre-computed diagSwipe spinner.
final
- fillSweepSpinner → Spinner
-
Pre-computed fillSweep spinner.
final
- gameOfLifeSpinner → Spinner
-
Pre-computed gameOfLife spinner.
final
- helixSpinner → Spinner
-
Pre-computed helix spinner.
final
- orbitSpinner → Spinner
-
Pre-computed orbit spinner.
final
- pendulumSpinner → Spinner
-
Pre-computed pendulum spinner.
final
- progressBarSpinner → Spinner
-
Pre-computed progressBar spinner.
final
- pulseSpinner → Spinner
-
Pre-computed pulse spinner.
final
- rainSpinner → Spinner
-
Pre-computed rain spinner.
final
- scanLineSpinner → Spinner
-
Pre-computed scanLine spinner.
final
- scanSpinner → Spinner
-
Pre-computed scan spinner.
final
- snakeSpinner → Spinner
-
Pre-computed snake spinner.
final
- sortSpinner → Spinner
-
Pre-computed sort spinner.
final
- sparkleSpinner → Spinner
-
Pre-computed sparkle spinner.
final
-
spinners
→ Map<
BrailleSpinnerName, Spinner> -
Pre-computed map of all available spinners by name.
final
- typingSpinner → Spinner
-
Pre-computed typing spinner.
final
- waveRowsSpinner → Spinner
-
Pre-computed waveRows spinner.
final
Functions
-
generateBreathe(
{int? intervalInMs}) → Spinner - Generates the breathe spinner animation.
-
generateCascade(
{int? intervalInMs}) → Spinner - Generates the cascade spinner animation.
-
generateCheckerboard(
{int? intervalInMs}) → Spinner - Generates the checkerboard spinner animation.
-
generateColumns(
{int? intervalInMs}) → Spinner - Generates the columns spinner animation.
-
generateCompress(
{int? intervalInMs}) → Spinner - Generates the compress spinner animation.
-
generateDiagSwipe(
{int? intervalInMs}) → Spinner - Generates the diagswipe spinner animation.
-
generateFillSweep(
{int? intervalInMs}) → Spinner - Generates the fillsweep spinner animation.
-
generateGameOfLife(
{int? intervalInMs}) → Spinner - Generates the gameOfLife spinner animation.
-
generateHelix(
{int? intervalInMs}) → Spinner - Generates the helix spinner animation.
-
generateOrbit(
{int? intervalInMs}) → Spinner - Generates the orbit spinner animation.
-
generatePendulum(
{int? intervalInMs}) → Spinner - Generates the pendulum spinner animation.
-
generateProgressBar(
{int? intervalInMs}) → Spinner - Generates the progressBar spinner animation.
-
generatePulse(
{int? intervalInMs}) → Spinner - Generates the pulse spinner animation.
-
generateRain(
{int? intervalInMs}) → Spinner - Generates the rain spinner animation.
-
generateScan(
{int? intervalInMs}) → Spinner - Generates the scan spinner animation.
-
generateScanLine(
{int? intervalInMs}) → Spinner - Generates the scanline spinner animation.
-
generateSnake(
{int? intervalInMs}) → Spinner - Generates the snake spinner animation.
-
generateSort(
{int? intervalInMs}) → Spinner - Generates the sort spinner animation.
-
generateSparkle(
{int? intervalInMs}) → Spinner - Generates the sparkle spinner animation.
-
generateTyping(
{int? intervalInMs}) → Spinner - Generates the typing spinner animation.
-
generateWaveRows(
{int? intervalInMs}) → Spinner - Generates the waverows spinner animation.
-
gridToBraille(
List< List< grid) → Stringbool> > - Converts a 4-row grid of booleans into a Braille Unicode string.
-
makeGrid(
int rows, int cols) → List< List< bool> > -
Creates an empty grid of
rows×colsboolean values (all false).