progress static method

dynamic progress(
  1. dynamic context, {
  2. double radius = 8,
  3. String subtitle = "Loading...",
  4. Color backgroundColor = Colors.white,
  5. TextStyle textStyle = const TextStyle(),
  6. double circularIndicatorStrokeWidth = 2,
  7. Color progressIndicatorColor = Colors.blue,
  8. ProgressType progressType = ProgressType.circular,
})

Implementation

static progress(
  context, {
  double radius = 8,
  String subtitle = "Loading...",
  Color backgroundColor = Colors.white,
  TextStyle textStyle = const TextStyle(),
  double circularIndicatorStrokeWidth = 2,
  Color progressIndicatorColor = Colors.blue,
  ProgressType progressType = ProgressType.circular,
}) =>
    showDialog(
      context: context,
      barrierDismissible: false,
      builder: (BuildContext context) => ProgressDialog(
        radius: radius,
        style: textStyle,
        subtitle: subtitle,
        progressType: progressType,
        backgroundColor: backgroundColor,
        progressIndicatorColor: progressIndicatorColor,
        circularIndicatorStrokeWidth: circularIndicatorStrokeWidth,
      ),
    );