circular static method

Widget circular({
  1. UKitLoaderBuilder? as,
  2. double scale = 0.7,
  3. bool withBackgorund = false,
})

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,
            ),
          ),
  );
}