codefirst_progress_dialog 1.1.0+2
codefirst_progress_dialog: ^1.1.0+2

Flutter Android iOS web

A light weight library to easily manage a progress dialog with simple steps whenever you need to do it. You can easily show and hide it.

codefirst_progress_dialog #

A simple package to show progress dialog. As it is a stateful widget, you can change the text shown on the dialog dynamically.

Get the library | Example

Supported Dart Versions #

Dart SDK version >= 2.1.0

Demo #

Demo Demo

How to use #

Add Package

  codefirst_progress_dialog: ^1.1.0+1
import 'package:progress_dialog/progress_dialog.dart';

Create an instance of ProgressDialog

ProgressDialog pr;

Initialise the pr object inside the build() method passing context to it

For Normal Progress Dialog #

  1. Initialize the ProgressDialog object
    pr = new ProgressDialog(context,ProgressDialogType.Normal);
    
  2. If need you can change the default message of progress dialog
    pr.setMessage('Please wait...');
    
  3. Showing the progress dialog
    pr.show();
    
  4. Dynamically update the content shown out there
    pr.update(message: "Few more seconds...");
    
  5. Dismissing the progress dialog
    pr.hide();
    

For Download Progress Dialog #

  1. Initialize the ProgressDialog object
    pr = new ProgressDialog(context,ProgressDialogType.Download);
    
  2. Showing the progress dialog
    pr.show();
    
  3. If you have been using progress dialog of type Download, percentage should be a double
    pr.update(progress: percentage,message: "Please wait...");
    
  4. Dismissing the progress dialog
    pr.hide();
    

Check if progress dialog is showing #

bool isProgressDialogShowing = pr.isShowing();

Loading indicator -> https://loading.io/

0
likes
90
pub points
46%
popularity

A light weight library to easily manage a progress dialog with simple steps whenever you need to do it. You can easily show and hide it.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

fabiojansen86@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on codefirst_progress_dialog