smooth_dialog 0.0.4 smooth_dialog: ^0.0.4 copied to clipboard
A smooth dialog is the customized dialog that provides the simple configuration of dialog and it has two UI experiences is Android and iOS.
A smooth dialog is the customized dialog that provides the simple configuration of dialog and it has two UI experiences is Android and iOS.
Features #
CustomDialog will show base on Platform that build on it.
- This is for android, web, windows and linux.
- This is for iOS and mac.
Getting started #
Copy it into pubspec.yaml then run command flutter pub get
smooth_dialog: ^0.0.4
Usage #
- This is how to show dialog
final SmoothDialog smoothDialog = SmoothDialog(context);
smoothDialog
.setTitleHeader("this is the header dialog")
.setDescription("This is description")
.setTitlePositive("Confirm")
.setTitleNegative("Cancel")
.showDialog();
- This is how to dismiss dialog
final SmoothDialog smoothDialog = SmoothDialog(context);
smoothDialog.dismissDialog();
- it also provide listener call back from button positive negative and dismiss
final SmoothDialog smoothDialog = SmoothDialog(context);
smoothDialog
.setTitleHeader("this is the header dialog")
.setDescription("This is description")
.setTitlePositive("Confirm")
.setTitleNegative("Cancel")
.addButtonNegativeListener((){
print("User click on button Negative");
})
.addButtonPositiveListener((){
print("User click on button Positive");
})
.addDismissListener((){
print("User was exit dialog");
})
.showDialog();
Additional information #
This is my first package, so if you want to contribute, please create an issue on this repository on Github, thank you!