Dialogs - dialogs

This flutter package provides aesthetically designed dialog box with customization options.

Choice Dialog

Choice Dialog Choice Dialog Rectangular Choice Dialog Rectangular Buttons

Message Dialog

Message Dialog Gif Message Dialog Message Dialog

Pub Version GitHub Workflow Status Github Stars GitHub

Simple Usage

To use this plugin, add dialogs as a dependency in your pubspec.yaml file.

Implementation:

  • Import import 'package:dialogs/ChoiceDialog/dialogs.dart';

ChoiceDialog

  • use showDialog function and call the Choice Dialog .
showDialog(
           context: context,
           builder: (buildContext) => ChoiceDialog()
);

MessageDialog

  • use showDialog function and call the Choice Dialog .
showDialog(
           context: context,
           builder: (buildContext) => MessageDialog()
);

You are good to go 💯

In order to add the ChoiceDialog to your app, there are several attributes that are important parameters you might have to use frequently:

AttributeTypeDefaultRequiredDescription
buttonOkOnPressedFunction()Navigator.pop(context)NoThis function will be registered as the callback of 'Ok' button.
buttonCancelOnPressedFunction()Navigator.pop(context)NoThis function will be registered as the callback of 'Cancel' button.
dialogRadiusdouble15.0NoDetermines the borderRadius of dialog box.
buttonRadiusdouble18.0NoDetermines the borderRadius of action buttons.
iconButtonOkIconnullNoRenders a FlatButton with the provided icon for positive action.
iconButtonCancelIconnullNoRenders a FlatButton with the provided icon for negative action.

CREDITS

Contributors

Made with contributors-img.

Libraries

dialogs
dialogs