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

ars_progress_dialog

progress dialog

customizable progress dialog for flutter applications with smooth animation for background dim color and blur.

ars_progress_dialog

getting started

install

add dependency to pubspec.yaml file :
ars_progress_dialog: 0.0.1

run this command :
$ flutter pub get

import

import class in your project :
import 'package:ars_progress_dialog/ars_progress_dialog.dart';

showing dialog

show simple progress dialog :

arsprogressdialog progressdialog = arsprogressdialog(
	context,
	blur: 2,
	backgroundcolor: color(0x33000000),
	animationduration: duration(milliseconds: 500));
	
	progressdialog.show(); // show dialog
	progressdialog.dismiss(); //close dialog

customize loading widget :

 arsprogressdialog customprogressdialog = arsprogressdialog(
	 context,
	 blur: 2,
	 backgroundcolor: color(0x33000000),
	 loadingwidget: container(
		 width: 150,
		 height: 150,
		 color: colors.red,
		 child: circularprogressindicator(),    
    ));  

properties

name type description default
backgroundcolor color dialog dim(background) color color (0x99000000)
blur double blur amount of dialog background 0
dismissable bool setting this true lets user dismiss dialog by touching outside of it. true
ondismiss function this function triggers when user dismisses dialog.
loadingwidget widget dialog’s widget. you can use your own widget when showing dialog. simple widget
usesafearea bool setting this to false makes dialog background fullscreen but when you set it true blur and background color will not apply on status bar, navigation bar and … false
animationduration duration this duration defines how much will take for blur and background color to appear. duration (milliseconds : 300)

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.