flutter_platform_alert library
A simple plugin to present native alerts, including playing alert sounds and showing alert dialogs.
It uses following API to show play alert sound.
- iOS: AudioService
- Android: RingtoneManager
- Windows: MessageBeep
- macOS: NSSound
- Linux: gtk_widget_error_bell
It uses following API to show alert dialogs.
- iOS: UIAlertController (It requires iOS 8)
- Android: AlertDialog
- Windows: MessageBox and TaskDialogIndirect
- macOS: NSAlert
- Linux: GtkMessageDialog
Classes
- FlutterPlatformAlert
- Helps to play platform alert sound and show platform alert dialogs.
- IosAlertOptions
- Customise the windows alert.
- MacosAlertOptions
- Customise the macos alert.
- PlatformAlertOptions
- Additional options for FlutterPlatformAlert.
- WindowsAlertOptions
- Customise the windows alert.
Enums
- AlertButton
- Represents the button that a user clicks on.
- AlertButtonStyle
- Represents the buttons in the dialog/alert.
- AlertWindowPosition
- Represents the desired position of the alert window.
- CustomButton
- Represents the buttons in FlutterPlatformAlert.showCustomAlert.
- IconStyle
- Represents the icon that appears in the dialog/alert.
- IosAlertStyle
- Enum mapping for the UIAlertController.Style.
- IosButtonStyle
- Enum mapping for the UIAlertAction.Style.