Viewing version 5.2.2. Open the latest package page.
flutter_spinkit
5.2.2A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.
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
SpinKitWanderingCubesnot working as showcased
5.2.1
- Fix
SpinKitCubeGridnot working as showcased
5.2.0
- Fix
SpinKitCircle,SpinKitFadingCircle,SpinKitDancingSquareanimation - Fix calling
setStateon unmounted states - Introduced [SpinKitWaveSpinner]
- Introduced [SpinKitPulsingGrid]
5.1.0
- Renamed
SpinKitPouringHourglass->SpinKitPouringHourGlassfor correctness - Fix
SpinKitFoldingCubeanimation - Fix disposing of non-local animation controllers
- Introduced
strokeWidthto 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
itemCountproperty toSpinKitWave - 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
constSpinKits - 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)),
);
3.1.0
Feature
durationparameter 70b113b
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
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | On demand | Download | baa0827c…71242c |
| 1.1.0 | On demand | Download | 906761d9…e4216e |
| 2.0.0 | On demand | Download | 8d8d8079…7605d3 |
| 2.0.1 | On demand | Download | 46866b28…12dd3f |
| 2.1.0 | On demand | Download | 6a268ca7…892cf2 |
| 3.0.0 | On demand | Download | e01e921f…5dcd92 |
| 3.1.0 | On demand | Download | ed36d9f2…c562a1 |
| 4.0.0 | On demand | Download | d2a7b65a…6a8115 |
| 4.1.0 | On demand | Download | 580749f0…4317c7 |
| 4.1.1 | On demand | Download | 69b855e9…0ecd54 |
| 4.1.1+1 | On demand | Download | f55010c7…1ae873 |
| 4.1.2 | On demand | Download | 7aeb712d…993290 |
| 4.1.2+1 | On demand | Download | 399fd2a7…f594c9 |
| 5.0.0-nullsafety.0 | On demand | Download | d225c907…9992c3 |
| 5.0.0 | On demand | Download | bd4c27ac…1f5461 |
| 5.1.0 | On demand | Download | 77a2117c…05dff8 |
| 5.2.0 | On demand | Download | b39c753e…e5bb8e |
| 5.2.1 | On demand | Download | d2696eed…db0472 |
| 5.2.2 | Cached · Upstream SHA-256 matched | Download | 77850df5…fdce7f |
Dependencies
flutter {
"sdk": "flutter"
}