- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 flutter 自定义loading
flutter 自定义loadingimport ‘package:flutter/cupertino.dart’;import ‘package:flutter/material.dart’;class ProgressDialog {static bool _isShowing = false;static void showProgress(BuildContext context,{Widget child = const CircularProgressIndicator(value
2020-10-27 13:32:51
1309
ProgressDialog.dart
flutter 自定义loading,调用 ProgressDialog.showProgress(context, child: Text('导出中'));
Future.delayed(Duration(seconds: 3)).then((_) {
ProgressDialog.dismiss(context);
});
2020-10-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅