Giter Site home page Giter Site logo

ruijinyao / progress_dialog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fayaz07/progress_dialog

0.0 0.0 0.0 11.8 MB

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.

Home Page: https://pub.dartlang.org/packages/progress_dialog

License: Apache License 2.0

Java 14.96% Objective-C 12.72% Dart 72.32%

progress_dialog's Introduction

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

Supported Dart Versions

Dart SDK version >= 2.1.0

Demo

Demo Demo

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.