smart_alert_dialog 4.0.4 copy "smart_alert_dialog: ^4.0.4" to clipboard
smart_alert_dialog: ^4.0.4 copied to clipboard

A Smart Alert Dialog that uses Cupertino for IOS and Material for Android. Fell Free to colaborate, every PR is welcome!

Smart Alert Dialog #

Pub Version

A Smart Alert Dialog that uses Cupertino for IOS and Material for Android

Android: #

Dismissable Alert Dialog:

Accept/Cancel Alert Dialog:

iOS: #

Dismissable Alert Dialog:

Accept/Cancel Alert Dialog:

Please note: Most of the support on debugging new issues relies on the open source community.

Props #

title

Change the title of the Alert Dialog

propType: String

REQUIRED!

message (Replacing the DEPRECATED content)

Change the description of the Alert Dialog

propType: String

REQUIRED!

onConfirmPressed (Replacing the DEPRECATED onConfirmPress)

Function to be call on accept press. If not set, it will appear a dismissable alert dialog.

propType: Function() default: null

onCancelPressed (Replacing the DEPRECATED onCancelPress)

Function to be call on cancel press.

propType: Function() default: Dismiss Dialog Alert

text

Change the text from confirm button

propType: AlertDialogText default: AlertDialogText()

style

Change the text from confirm button

propType: AlertDialogText default: AlertDialogStyle()

AlertDialogText #

confirm

Change the text from confirm button

propType: String default: Yes

cancel

Change the text from cancel button

propType: String default: No

dismiss

Change the text from dismiss button

propType: String default: Ok

AlertDialogStyle #

confirm

Change the text style from confirm button

propType: TextStyle

cancel

Change the text style from cancel button

propType: TextStyle

dismiss

Change the text style from dismiss button

propType: TextStyle

title

Change the text style from title text

propType: TextStyle

message

Change the text style from title message

propType: TextStyle

ToDo #

  • Add cancelTextColor - it is inside AlertDialogStyle, check style prop
  • Add confirmTextColor - it is inside AlertDialogStyle, check style prop
  • Add dismissText - it is inside AlertDialogText, check text prop
  • Add dismissTextColor - it is inside AlertDialogStyle, check style prop
  • Create design for Tablets and Web
  • Add Test to every components

Please open an issue if something doesn't work or is not clear enough.

License #

See LICENSE.md

10
likes
130
pub points
78%
popularity

Publisher

verified publisherfreya-hidroponia.ga

A Smart Alert Dialog that uses Cupertino for IOS and Material for Android. Fell Free to colaborate, every PR is welcome!

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter, universal_io

More

Packages that depend on smart_alert_dialog