circularLoader static method
Circular Progress Indicator.
Implementation
static circularLoader(
{double size = 50.0, Color? color, double? strokeWidth}) {
return Center(
child: Container(
width: size,
height: size,
alignment: Alignment.center,
child: CircularProgressIndicator(
strokeWidth: strokeWidth ?? 4.0,
valueColor: AlwaysStoppedAnimation<Color>(color ?? Colors.black),
),
),
);
}