Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

progress dialogs

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 | example

supported dart versions

dart sdk version >= 2.1.0

demo

progress dialogs
progress dialogs

stateful_1

how to use

add package

  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();

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.