alert 2.0.1
alert: ^2.0.1 copied to clipboard

A Flutter plugin for showing native alert dialog in IOS and Toast messages in Android.

flutter-alert #

A Flutter plugin for showing native alert dialog in IOS and Toast messages in Android.

Usage #

Just one line:

Alert(message: 'Test').show()

Also for Android, alert has an optional boolean param shortDuration:

Alert(message: 'Test', shortDuration: true).show()

true is equivalent of Toast.LENGTH_SHORT false is equivalent of Toast.LENGTH_LONG

Param shortDuration is true by default.

Examples #

AndroidIOS
13
likes
110
pub points
85%
popularity

A Flutter plugin for showing native alert dialog in IOS and Toast messages in Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on alert