Simple Fontellico Progress Dialog ⌛

This package helps to render a progress dialog window with different types of loading indicator.

New Features 💥

  • Property hideText to hide the text (and spacer) to only show loading indicator
  • The custom type added. When the type is set to custom, you require to add a loadingIndicator widget
  • Method updateMessageText to update the message text on dialog while is showing
  • Property horizontal to show the loading on this mode

Instalation

Include simple_fontellico_progress_dialog in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  simple_fontellico_progress_dialog: version

Demo Vertical Mode

Demo Horizontal Mode

Usage

To use this package, just import it into your file, create a new instance, pass the context as parameter.

import 'package:simple_fontellico_progress_dialog/simple_fontico_loading.dart';

...

SimpleFontelicoProgressDialog _dialog = SimpleFontelicoProgressDialog(context: context, barrierDimisable:  false);
...

void showDialog() async{
  _dialog.show(message: 'Loading...', type: type);
  await Future.delayed(Duration(seconds: 1));
  _dialog.hide();
}

...

Constructor

NameDescriptionRequiredDefault
contextBuildcontext to render the dialogTrue
barrierDimisableBoolean value to indicate barrierDimisable on dialogTrue

To show a dialog, use the show method, to hide it, use the hide method. Simple like that.

Properties used on show method

NameDescriptionRequiredDefault
messageString to indicate a message into the dialogTrue
typeSimple dialog type (normal, threeline, multiline, refresh, hurricane, phoenix, iphone)Falsenormal
widthDouble value to indicate the dialog widthFalse100
heightDouble value to indicate the dialog heightFalse120
elevationDouble value to indicate the dialog elevationFalse5.0
radiusDouble value to indicate the dialog border radiusFalse5.0
backgroundColorDouble value to indicate the dialog background colorFalseColors.white
durationDuration value to animate loading indicatorFalse1000 miliseconds
horizontalBoolean value to indicate if loading has to show on horizontalFalsefalse
separationDouble value to indicate the separation between loading and textFalse10.0
textStyleStyle to customize the text inside dialogFalseTextStyle(fontSize: 14)
hideTextBoolean value to hide the text widgetFalsefalse
loadingIndicatorWidget to use when type is set on custom.False (Required when type is custom)

Properties used on updateMessageText method

NameDescriptionRequiredDefault
messageString to update the message inside an opened dialgoTrue

Libraries

fontelico_icons
rotate_icon
simple_fontellico_progress_dialog