Viewing version 5.2.2. Open the latest package page.

flutter_spinkit

5.2.2

A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.

Download archive

Readme

✨ Flutter Spinkit

Format, Analyze and Test codecov pub package

A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.

🎖 Installing

dependencies:
  flutter_spinkit: ^5.2.2

⚡️ Import

import 'package:flutter_spinkit/flutter_spinkit.dart';

🎮 How To Use

const spinkit = SpinKitRotatingCircle(
  color: Colors.white,
  size: 50.0,
);
final spinkit = SpinKitFadingCircle(
  itemBuilder: (BuildContext context, int index) {
    return DecoratedBox(
      decoration: BoxDecoration(
        color: index.isEven ? Colors.red : Colors.green,
      ),
    );
  },
);
final spinkit = SpinKitSquareCircle(
  color: Colors.white,
  size: 50.0,
  controller: AnimationController(vsync: this, duration: const Duration(milliseconds: 1200)),
);

For more info, please, refer to the showcase.dart in the example.

🚀 Showcase

Some GIF images gotten from Android Spinkit.

🐛 Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

❗️ Note

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

☀️ Authors

⭐️ License

MIT License

Changelog

ChangeLog for Flutter Spinkit

A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.

5.2.2

  • Fix SpinKitWanderingCubes not working as showcased

5.2.1

  • Fix SpinKitCubeGrid not working as showcased

5.2.0

  • Fix SpinKitCircle, SpinKitFadingCircle, SpinKitDancingSquare animation
  • Fix calling setState on unmounted states
  • Introduced [SpinKitWaveSpinner]
  • Introduced [SpinKitPulsingGrid]

5.1.0

  • Renamed SpinKitPouringHourglass -> SpinKitPouringHourGlass for correctness
  • Fix SpinKitFoldingCube animation
  • Fix disposing of non-local animation controllers
  • Introduced strokeWidth to pouring glass animation
  • Introduced SpinKitPouringHourGlassRefined
  • Introduced SpinKitSpinningLines
  • Introduced SpinKitPianoWave
  • Introduced SpinKitDancingSquare
  • Introduced SpinKitThreeInOut

5.0.0

  • Migrate to null safety

4.1.2+1

  • Upgrades the example to AndroidX

4.1.2

  • Introduced new itemCount property to SpinKitWave
  • Fixed broken calculations that made certain animations behave weirdly

4.1.1+1

  • Include Authors info in README

4.1.1

  • Utilize native flutter auto-reverse feature for AnimationController

4.1.0

  • Introduces a new SpinKit [SpinKitSquareCircle]
  • Introduces const SpinKits
  • Improve code quality across all spinners

Before

final spinkit = SpinKitSquareCircle(color: Colors.white, size: 50.0);

Now, all SpinKits can be initialized as consts

const spinkit = SpinKitSquareCircle(color: Colors.white, size: 50.0);

4.0.0

Feature

final spinkit = SpinKitFadingCircle(
  color: Colors.white,
  size: 50.0,
  controller: AnimationController(vsync: this, duration: const Duration(milliseconds: 1200)),
);
  • [DualRing] lineWidth parameter 9bcfd5. Closes #42

3.1.0

Feature

Fixes

  • state disposed before ticker 0c9b6e3

3.0.0

Before

final spinkit = SpinKitFadingCircle(color: Colors.white, size: 50.0);

Now, there is an itemBuilder alternative

final spinkit = SpinKitFadingCircle(
  itemBuilder: (_, int index) {
    return DecoratedBox(
      decoration: BoxDecoration(
        color: index.isEven ? Colors.red : Colors.green,
      ),
    );
  },
);

Which produces

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'flutter_spinkit:5.2.2'
pubspec.yaml
name: flutter_spinkit
description: A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.
version: 5.2.2
homepage: https://github.com/jogboms/flutter_spinkit

environment:
  sdk: '>=2.12.0 <4.0.0'
  flutter: ">=2.0.0"

dependencies:
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^6.0.0

Version history

VersionPublishedArchiveSHA-256
1.0.0On demandDownloadbaa0827c…71242c
1.1.0On demandDownload906761d9…e4216e
2.0.0On demandDownload8d8d8079…7605d3
2.0.1On demandDownload46866b28…12dd3f
2.1.0On demandDownload6a268ca7…892cf2
3.0.0On demandDownloade01e921f…5dcd92
3.1.0On demandDownloaded36d9f2…c562a1
4.0.0On demandDownloadd2a7b65a…6a8115
4.1.0On demandDownload580749f0…4317c7
4.1.1On demandDownload69b855e9…0ecd54
4.1.1+1On demandDownloadf55010c7…1ae873
4.1.2On demandDownload7aeb712d…993290
4.1.2+1On demandDownload399fd2a7…f594c9
5.0.0-nullsafety.0On demandDownloadd225c907…9992c3
5.0.0On demandDownloadbd4c27ac…1f5461
5.1.0On demandDownload77a2117c…05dff8
5.2.0On demandDownloadb39c753e…e5bb8e
5.2.1On demandDownloadd2696eed…db0472
5.2.2Cached · Upstream SHA-256 matchedDownload77850df5…fdce7f

Dependencies

flutter { "sdk": "flutter" }