Before
SpinKitFadingCircle(
color: Colors.white,
size: 50.0,
);
Now, there is an itemBuilder alternative
SpinKitFadingCircle(
itemBuilder: (_, int index) {
return DecoratedBox(
decoration: BoxDecoration(
color: index.isEven ? Colors.red : Colors.green,
),
);
},
);
Which produces