Sunday, 14 July 2019

A light weight package to show progress dialog

flutter tutorial,flutter,flutter tutorial for beginners,flutter app,flutter tutorials,flutter sdk,tutorial,flutter course,learn flutter,flutter tutorial ios,flutter firebase tutorial,flutter widgets,flutter app development tutorial,flutter ios,flutter dart,flutter android,google flutter,flutter sdk tutorial,flutter tutorial app,google flutter tutorial,flutter sqflite tutorial,flutter tutorial deutsch,flutter tutorial android

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.

Supported Dart Versions

Dart SDK version >= 2.1.0

Demo

flutter tutorial,flutter,flutter tutorial for beginners,flutter app,flutter tutorials,flutter sdk,tutorial,flutter course,learn flutter,flutter tutorial ios,flutter firebase tutorial,flutter widgets,flutter app development tutorial,flutter ios,flutter dart,flutter android,google flutter,flutter sdk tutorial,flutter tutorial app,google flutter tutorial,flutter sqflite tutorial,flutter tutorial deutsch,flutter tutorial android


flutter tutorial,flutter,flutter tutorial for beginners,flutter app,flutter tutorials,flutter sdk,tutorial,flutter course,learn flutter,flutter tutorial ios,flutter firebase tutorial,flutter widgets,flutter app development tutorial,flutter ios,flutter dart,flutter android,google flutter,flutter sdk tutorial,flutter tutorial app,google flutter tutorial,flutter sqflite tutorial,flutter tutorial deutsch,flutter tutorial android




How to use

Add Package
  progress_dialog: ^1.1.0+1
YAML
import 'package:progress_dialog/progress_dialog.dart';
Dart
Create an instance of ProgressDialog
ProgressDialog pr;
Dart
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);
    
    Dart
  2. If need you can change the default message of progress dialog
    pr.setMessage('Please wait...');
    
    Dart
  3. Showing the progress dialog
    pr.show();
    
    Dart
  4. Dynamically update the content shown out there
    pr.update(message: "Few more seconds...");
    
    Dart
  5. Dismissing the progress dialog
    pr.hide();
    
    Dart

For Download Progress Dialog

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

Check if progress dialog is showing

bool isProgressDialogShowing = pr.isShowing();
Dart

GitHub

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. — Read More
Latest commit to the master branch on 4-29-2019
Download as zip