platform_alert_dialog 1.0.0 platform_alert_dialog: ^1.0.0 copied to clipboard
Flutter plugin for build alert dialogs adapted to the current platform.
Platform Alert Dialog #
Flutter plugin for build alert dialogs adapted to the current platform.
PlatformAlertDialog(
title: Text('Interrupt the session?'),
content: Text('The session will be counted as not completed.'),
actions: [
PlatformDialogAction(
child: Text('Cancel'),
onPressed: () {...},
),
// danger action
PlatformDialogAction(
child: Text('Interrupt'),
onPressed: () {...},
),
]
)