progress static method

Future<void> progress(
  1. BuildContext context,
  2. double value, {
  3. String title = '正在同步数据',
})

进度对话框

Implementation

static Future<void> progress(
  BuildContext context,
  double value, {
  String title = '正在同步数据',
}) {
  return show(
    context,
    type: NZDialogType.progress,
    title: title,
    progress: value,
    barrierDismissible: false,
    actions: [
      NZDialogAction(label: '后台运行', onPressed: () => Navigator.pop(context)),
    ],
  );
}