smooth_dialog 0.0.4 icon indicating copy to clipboard operation
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.

photo_2021-12-10 10 02 27

  • This is for iOS and mac.

photo_2021-12-10 10 02 32

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!

smooth_dialog #

0
likes
130
pub points
27%
popularity

Publisher

unverified uploader

A smooth dialog is the customized dialog that provides the simple configuration of dialog and it has two UI experiences is Android and iOS.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on smooth_dialog