/flutter-alert

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

Primary LanguageRubyMIT LicenseMIT

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

Android IOS