A collection of loading indicators animated with flutter. Heavily inspired by@tobiasahlin'sSpinKit.
dependencies:
flutter_spinkit:^5.2.1
import'package:flutter_spinkit/flutter_spinkit.dart';
constspinkit=SpinKitRotatingCircle(
color:Colors.white,
size:50.0,
);
finalspinkit=SpinKitFadingCircle(
itemBuilder:(BuildContextcontext,intindex) {
returnDecoratedBox(
decoration:BoxDecoration(
color:index.isEven?Colors.red:Colors.green,
),
);
},
);
finalspinkit=SpinKitSquareCircle(
color:Colors.white,
size:50.0,
controller:AnimationController(vsync:this,duration:constDuration(milliseconds:1200)),
);
For more info, please, refer to theshowcase.dart
in the example.
Some GIF images gotten fromAndroid Spinkit.
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.
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view thedocumentation.
|
|
MIT License