circular static method
Implementation
static Widget circular({
UKitLoaderBuilder? as,
double scale = 0.7,
bool withBackgorund = false,
}) {
return Center(
child: withBackgorund
? Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(80),
),
child: Transform.scale(
scale: scale,
child: CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation<Color>(as?.color ?? Colors.blue),
backgroundColor: as?.bgColor,
strokeWidth: as?.strokeWidth ?? 4.0,
),
),
)
: Transform.scale(
scale: scale,
child: CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation<Color>(as?.color ?? Colors.blue),
backgroundColor: as?.bgColor,
strokeWidth: as?.strokeWidth ?? 4.0,
),
),
);
}