GithubHelp home page GithubHelp logo

vikasjilla / progress_dialog Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 6.0 34.1 MB

A flutter package for showing progress dialog

License: MIT License

Java 1.18% Objective-C 56.17% Dart 6.07% Makefile 32.98% C 3.10% D 0.10% Shell 0.41%

progress_dialog's Introduction

progress_dialog

A Simple and easy to use flutter package for showing progress bar.

#Usage

Import the package

import 'package:custom_progress_dialog/custom_progress_dialog.dart';

Create an object for ProgressDialog class

ProgressDialog _progressDialog = ProgressDialog();

showing progress dialog

_progressDialog.showProgressDialog(context,dismissAfter: Duration(seconds: 5),textToBeDisplayed:'Sending...',onDismiss:(){
	//things to do after dismissing -- optional
});
dismissAfter - if null then progress dialog won't dismiss until dismissProgressDialog is called from the code.

dismiss progressDialog

_progressDialog.dismissProgressDialog(context);

Preview:

progress_dialog's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

progress_dialog's Issues

Null Safety

Any predictions for "Null Safety" support?

Decorator as input

Hi, first of all, thanks for the plugin, is just what i was looking!
I would like to suggest in the method showProgressDialog to add another input for the decorator of the container of the CustomProgressDialog. I would like to change the color to a different of Colors.black, and also change the borderRadious. You could also allow to change the whole container to a new one, and leave the existing as default.

Prevent the back button from being pressed

What a great, simple to use Package.
I need a function to prevent the back button from being pressed, because I use this dialog while synchronizing data and to prevent

Unhandled Exception: Failed assertion: boolean expression must not be null

kind of error, because progress_dialog no longer exist in widget tree

For this reason I add the following line to my code.
I hope you can add this function, because maybe many people need it.
Thanks.

  Widget build(BuildContext context) {
    final DialogTheme dialogTheme = DialogTheme.of(context);
    //start from this line
    return WillPopScope(
        onWillPop: () => Future.value(false),
        child: AnimatedPadding(
  //to this line

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.