# flutter_progress_dialog **Repository Path**: plugin_levi/flutter_progress_dialog ## Basic Information - **Project Name**: flutter_progress_dialog - **Description**: flutter Plugin - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # progress_dialog A light weight package to show progress dialog. As it is a stateful widget, you can change the text shown on the dialog dynamically. [Get the library](https://pub.dartlang.org/packages/progress_dialog) | [Example](https://pub.dartlang.org/packages/progress_dialog#-example-tab-) ## Supported Dart Versions **Dart SDK version >= 2.1.0** ## Demo [Normal ProgressDialog](https://raw.githubusercontent.com/fayaz07/progress_dialog/master/stateful_1.gif) | [Download ProgressDialog](https://raw.githubusercontent.com/fayaz07/progress_dialog/master/stateful_2.gif) ## How to use Add Package ```yaml progress_dialog: ^1.1.0+1 ``` ```dart import 'package:progress_dialog/progress_dialog.dart'; ``` Create an instance of ProgressDialog ```dart ProgressDialog pr; ``` Initialise the pr object inside the **build()** method passing context to it ## For Normal Progress Dialog
  1. Initialize the ProgressDialog object ```dart pr = new ProgressDialog(context,ProgressDialogType.Normal); ```
  2. If need you can change the default message of progress dialog ```dart pr.setMessage('Please wait...'); ```
  3. Showing the progress dialog ```dart pr.show(); ```
  4. Dynamically update the content shown out there ```dart pr.update(message: "Few more seconds..."); ```
  5. Dismissing the progress dialog ```dart pr.hide(); ```
## For Download Progress Dialog
  1. Initialize the ProgressDialog object ```dart pr = new ProgressDialog(context,ProgressDialogType.Download); ```
  2. Showing the progress dialog ```dart pr.show(); ```
  3. If you have been using progress dialog of type Download, percentage should be a double ```dart pr.update(progress: percentage,message: "Please wait..."); ```
  4. Dismissing the progress dialog ```dart pr.hide(); ```
### Check if progress dialog is showing ```dart bool isProgressDialogShowing = pr.isShowing(); ``` --- Loading indicator -> https://loading.io/