rive_animated_loaders 0.0.1 copy "rive_animated_loaders: ^0.0.1" to clipboard
rive_animated_loaders: ^0.0.1 copied to clipboard

This package provides rive animated loaders that you can use in your projects.

Rive Animated Loaders #

MIT License

A Flutter package that provides a set of ready-made, animated loading indicators built with Rive. Drop in a widget, set its color to match your brand, and you're done.

Features #

  • 12 pre-built animated loaders, all bundled in a single rive asset.
  • Simple static-method API: RiveAnimatedLoader.<loaderName>().
  • Optional color and size customization per loader.

Loaders #

jumping-squares
Jumping Squares
RiveAnimatedLoader.jumpingSquares()
moving-cubes
Moving Cubes
RiveAnimatedLoader.movingCubes()
twin-spheres
Twin Spheres
RiveAnimatedLoader.twinSpheres()
jumping-circles
Jumping Circles
RiveAnimatedLoader.jumpingCircles()
beep-wave
Beep Wave
RiveAnimatedLoader.beepWave()
infinite
Infinite
RiveAnimatedLoader.infinite()
falling-cube
Falling Cube
RiveAnimatedLoader.fallingCube()
circle-spinner
Circle Spinner
RiveAnimatedLoader.circleSpinner()
long-wave
Long Wave
RiveAnimatedLoader.longWave()
jumping-dot
Jumping Dot
RiveAnimatedLoader.jumpingDot()
spinning-dot
Spinning Dot
RiveAnimatedLoader.spinningDot()
rotating-circles
Rotating Circles
RiveAnimatedLoader.rotatingCircles()

Getting started #

Add the package to your pubspec.yaml:

dependencies:
  rive_animated_loaders: ^0.0.1

Then run:

flutter pub get

Usage #

Import the package and use any loader as a widget:

import 'package:flutter/material.dart';
import 'package:rive_animated_loaders/rive_animated_loaders.dart';

class LoadingView extends StatelessWidget {
  const LoadingView({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: RiveAnimatedLoader.jumpingSquares(),
    );
  }
}

Customizing color and size #

Most loaders accept an optional color and size:

RiveAnimatedLoader.circleSpinner(
  color: Colors.deepPurple,
  size: 64,
);

Two-tone loaders (twinSpheres, spinningDot, rotatingCircles) accept color1 and color2 instead:

RiveAnimatedLoader.twinSpheres(
  color1: Colors.deepPurple,
  color2: Colors.amber,
);

size sets the loader's height; width defaults to twice the height. When omitted, each loader falls back to its own built-in default color and size.

See the example app for a full working demo that pages through every loader.

Additional information #

Maintainers #

5
likes
160
points
94
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This package provides rive animated loaders that you can use in your projects.

Repository (GitHub)
View/report issues
Contributing

Topics

#loaders #animation #flutter #rive #loading-indicator

License

MIT (license)

Dependencies

flutter, rive

More

Packages that depend on rive_animated_loaders