v0.2.1future_progress_dialog
future_progress_dialog 是一個用於異步任務的簡單進度對話框庫。當您呼叫 showDialog 函數時,FutureProgressDialog 會啟動,但在未來任務完成後會自動關閉。
33喜歡 596近 30 天下載140Pub 分數
AndroidiOSWebmacOSWindowsLinux
donguseo/future_progress_dialog open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 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...')),
);
https://github.com/donguseo/future_progress_dialog/blob/master/readme_res/future_progress_dialog.png?raw=true
Or you can show it without message.
await showDialog(
context: context,
builder: (context) =>
FutureProgressDialog(getFuture()),
);
https://github.com/donguseo/future_progress_dialog/blob/master/readme_res/future_progress_dialog_without_msg.png?raw=true