A collection of beautiful, customizable loading spinners for flutter applications, leveraging CustomPainter.
Add this to your package's pubspec.yaml file:
dependencies:
flutter_spinners: ^0.0.2Then run:
flutter pub getimport 'package:flutter_spinners/flutter_spinners.dart';WavyDotsIndicator(
color: Colors.white,
size: 60,
duration: const Duration(seconds: 2)
),All spinners support customization through common parameters:
SteppedDotsLoader(
color: Colors.purple, // Change the color
size: 50.0, // Adjust the size (if supported)
duration: Duration(seconds: 2), // Control animation speed
)| Parameter | Type | Description |
|---|---|---|
color |
Color | The color of the spinner (required) |
duration |
Duration | Animation cycle duration (optional, varies by spinner) |
size |
double | Size of the spinner in logical pixels (optional, where applicable) |
borderRadius |
double | Corner radius of the bars (only available for bar-based spinners) |
- CornerDotsIndicator
- FlippingDotsIndicator
- GridDotsShimmerIndicator
- PulseDotsIndicator
- QuadDotSwapIndicator
- ShadowDotsIndicator
- SingleStepLoader
- SteppedDotsLoader
- SwappingDotsIndicator
- WavyDotsIndicator
- BarWaveIndicator
- DancingBarsIndicator
- DoubleRowBarsIndicator
- FlippingBarsIndicator
- GrowingBarWaveIndicator
- HorizontalShutterBarsIndicator
- ShrinkSwapBarsIndicator
- SinkingBarsIndicator
- StretchBarsIndicator
- VerticalShutterBarsIndicator
- FlippingSquareIndicator
- FlippingSquaresGridIndicator
- FoldingSquareIndicator
- PulsatingSquareIndicator
- ShimmeringSquareGridIndicator
- SquareWaveGridIndicator
- SlidingSquareLineIndicator
- SquareLineIndicator
- SquareLineLoopIndicator
Contributions are very welcome! 🎉
Whether it’s a new spinner, a bug fix, or a documentation improvement, every bit helps.
If you find this package useful, please consider giving it a star on GitHub and a like on pub.dev!
Built with ❤️ for the Flutter community.
