showLoading function

ExtendedOverlayEntry? showLoading({
  1. Widget? custom,
  2. ModalWindowsOptions? options,
  3. Widget? extra,
  4. double? value,
  5. Color? backgroundColor,
  6. Animation<Color>? valueColor,
  7. double strokeWidth = 4.0,
  8. String? semanticsLabel,
  9. String? semanticsValue,
  10. LoadingStyle? style,
})

loading 加载框 关闭 closeLoading();

Implementation

ExtendedOverlayEntry? showLoading({
  /// 通常使用自定义的
  Widget? custom,

  /// 底层模态框配置
  ModalWindowsOptions? options,

  /// 官方 ProgressIndicator 底部加个组件
  Widget? extra,

  /// 以下为官方三个 ProgressIndicator 配置
  double? value,
  Color? backgroundColor,
  Animation<Color>? valueColor,
  double strokeWidth = 4.0,
  String? semanticsLabel,
  String? semanticsValue,
  LoadingStyle? style,
}) =>
    Loading(
            custom: custom,
            extra: extra,
            options: options,
            value: value,
            backgroundColor: backgroundColor,
            valueColor: valueColor,
            strokeWidth: strokeWidth,
            semanticsLabel: semanticsLabel,
            semanticsValue: semanticsValue,
            style: style)
        .show();