Skip to content

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

License

Notifications You must be signed in to change notification settings

Pisey-Nguon/flutter_smooth_dialog

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages