futuristicProgressIndicator function

Widget futuristicProgressIndicator(
  1. double progress,
  2. Color color
)

Implementation

Widget futuristicProgressIndicator(double progress, Color color) {
  return SizedBox(
    width: 80,
    height: 80,
    child: CircularProgressIndicator(
      value: progress,
      strokeWidth: 8,
      valueColor: AlwaysStoppedAnimation<Color>(color),
      backgroundColor: color.withOpacity(0.3),
    ),
  );
}