loading_animation_widget 0.0.1+1 copy "loading_animation_widget: ^0.0.1+1" to clipboard
loading_animation_widget: ^0.0.1+1 copied to clipboard

outdated

This package contains loading animation or loading spiner or loader. It's usually used to show loading animation when the app is in loading state or something is processing for uncertain time.

Loading Animation Widget


How to use #

Add loading_animation_widget: to your pubspec.yaml dependencies then run flutter pub get

 dependencies:
  loading_animation_widget:

Then import the package to use

import 'package:loading_animation_widget/loading_animation_widget.dart';


All loading animation APIs are same straight forward. There is a static method for each animation inside LoadingAnimationWidget class, which returns the Object of that animation. Both size and color are required some animations need more than one color. The optional time parameter is in int and it's in milliseconds. The default time is most suitable time but you can still change it.

Loading animation with one color

Scaffold(
    body: Center(
      child: LoadingAnimationWidget.staggeredDotWave(
        color: Colors.white,
        size: 200,
      ),
    ),

Loading animation with more than one color. You have to provide both required colors.

Scaffold(
    body: Center(
        child: LoadingAnimationWidget.twistingDots(
          leftDotColor: const Color(0xFF1A1A3F),
          rightDotColor: const Color(0xFFEA3799),
          size: 200,
        ),
      ),

Design credits with screen recordings #

  1. wavingDots
  1. inkDrop
  1. twistingDots
  1. threeRotatingDots
  1. staggeredDotWave
  1. fourRotatingDots
  1. fallingDot
  1. progressiveDots
  1. discreteCircular
  1. threeArchedCircle
  1. bouncingBall
  1. flickr
  1. hexagonDots
  1. beat
  1. twoRotatingArc
  1. threeHorizontalDots
  1. newtonCradle
  1. stretchedDots
  1. halfTringleDot
  1. dotTrangle

All package list

Sliding Clipped Nav Bar

Water Drop Nav Bar

Swipeable Tile

Loading Animation Widget


1421
likes
0
pub points
99%
popularity

Publisher

verified publisherwaterydesert.com

This package contains loading animation or loading spiner or loader. It's usually used to show loading animation when the app is in loading state or something is processing for uncertain time.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on loading_animation_widget