Skip to content

Oleksandr32/flutter-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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