A collection of loading indicators animated with flutter. Heavily inspired by ybq's Android-SpinKit.
_ | _ | _ |
---|---|---|
pulse | double_bounce | triple_bounce |
sound_wave | chasing_dots | cube_grid |
beads_scale | beads_fade | circle_3d |
cube_3d |
LoadingWidget(
size: 200,
bgColor: Colors.purple,
animStyle: AnimStyle.CUBE_3D
)
There are multiple animation style, which are from an enum:
enum AnimStyle {
PULSE, DOUBLE_BOUNCE, TRIPLE_BOUNCE, CHASING_DOTS,
SOUND_WAVE, CUBE_GRID, BEADS_SCALE, BEADS_FADING,
CIRCLE_3D, CUBE_3D, FOLDING_CUBES
}
There are several flutter spinkit libraries already in the pub.dev However, they are mostly focus on the widget. This library only focus on how to draw the animation by Canvas. That's the main difference.