alert
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()
copied to clipboard
Also for Android, alert has an optional boolean param shortDuration:
Alert(message: 'Test', shortDuration: true).show()
copied to clipboard
true is equivalent of Toast.LENGTH_SHORT
false is equivalent of Toast.LENGTH_LONG
Param shortDuration is true by default.
Examples #
Android
IOS
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.