v0.2.1future_progress_dialog
future_progress_dialog 是一个用于异步任务的简单进度对话框库。当您调用 showDialog 函数时,FutureProgressDialog 会启动,但会在未来任务完成后自动关闭。
33喜欢 810近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
donguseo/future_progress_dialog open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
future_progress_dialog is a simple progress dialog library for async tasks. FutureProgressDialog start when you call showDialog function, but dismiss automatically when future task is finished.
Dart SDK version >= 2.1.0
Add the Package
dependencies:
future_progress_dialog: ^0.2.0
Import the package in your dart file
import 'package:future_progress_dialog/future_progress_dialog.dart';
Call showDialog method with FutureProgressDialog with message.
showDialog(
context: context,
builder: (context) =>
FutureProgressDialog(getFuture(), message: Text('Loading...')),
);
Or you can show it without message.
await showDialog(
context: context,
builder: (context) =>
FutureProgressDialog(getFuture()),
);
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗