sahad752 / dialogs

dialogs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Attribute Type Default Required Description
buttonOkOnPressed Function() Navigator.pop(context) No This function will be registered as the callback of 'Ok' button.
buttonCancelOnPressed Function() Navigator.pop(context) No This function will be registered as the callback of 'Cancel' button.
dialogRadius double 15.0 No Determines the borderRadius of dialog box.
buttonRadius double 18.0 No Determines the borderRadius of action buttons.
iconButtonOk Icon null No Renders a FlatButton with the provided icon for positive action.
iconButtonCancel Icon null No Renders a FlatButton with the provided icon for negative action.

CREDITS

Contributors

Made with contributors-img.

About

dialogs

License:MIT License


Languages

Language:Dart 96.9%Language:Swift 2.2%Language:Kotlin 0.7%Language:Objective-C 0.2%