adaptive_dialog library

Classes

AlertDialogAction<T>
Used for specifying showAlertDialog's actions.
DialogTextField
MaterialModalActionSheetConfiguration
SheetAction<T>
Used for specifying showModalActionSheet's actions.

Extensions

AdaptiveStyleEx
AlertDialogActionEx
AlertDialogActionListEx

Functions

showAlertDialog<T>({BuildContext context, String title, String message, List<AlertDialogAction<T>> actions: const [], bool barrierDismissible: true, AdaptiveStyle style: AdaptiveStyle.adaptive, bool useActionSheetForCupertino: false, bool useRootNavigator: true, VerticalDirection actionsOverflowDirection: VerticalDirection.up}) Future<T>
Show alert dialog, whose appearance is adaptive according to platform [...]
showConfirmationDialog<T>({BuildContext context, String title, String message, String okLabel, String cancelLabel, double contentMaxHeight, List<AlertDialogAction<T>> actions: const [], bool barrierDismissible: true, AdaptiveStyle style: AdaptiveStyle.adaptive, bool useRootNavigator: true}) Future<T>
Show confirmation dialog, whose appearance is adaptive according to platform [...]
showModalActionSheet<T>({BuildContext context, String title, String message, List<SheetAction<T>> actions: const [], String cancelLabel, AdaptiveStyle style: AdaptiveStyle.adaptive, bool isDismissible: true, bool useRootNavigator: true, MaterialModalActionSheetConfiguration materialConfiguration}) Future<T>
Show modal action sheet, whose appearance is adaptive according to platform The isDismissible parameter only works for material style and it specifies whether the bottom sheet will be dismissed when user taps on the scrim.
showOkAlertDialog({BuildContext context, String title, String message, String okLabel, bool barrierDismissible: true, AdaptiveStyle alertStyle: AdaptiveStyle.adaptive, bool useActionSheetForCupertino: false, bool useRootNavigator: true, VerticalDirection actionsOverflowDirection: VerticalDirection.up}) Future<OkCancelResult>
Show OK alert dialog, whose appearance is adaptive according to platform [...]
showOkCancelAlertDialog({BuildContext context, String title, String message, String okLabel, String cancelLabel, OkCancelAlertDefaultType defaultType, bool isDestructiveAction: false, bool barrierDismissible: true, AdaptiveStyle alertStyle: AdaptiveStyle.adaptive, bool useActionSheetForCupertino: false, bool useRootNavigator: true, VerticalDirection actionsOverflowDirection: VerticalDirection.up}) Future<OkCancelResult>
Show OK/Cancel alert dialog, whose appearance is adaptive according to platform [...]
showTextAnswerDialog({BuildContext context, String keyword, String title, String message, String okLabel, String cancelLabel, bool isDestructiveAction: false, String hintText, String retryTitle, String retryMessage, String retryOkLabel, String retryCancelLabel, AdaptiveStyle style: AdaptiveStyle.adaptive, VerticalDirection actionsOverflowDirection: VerticalDirection.up}) Future<bool>
showTextInputDialog({BuildContext context, List<DialogTextField> textFields, String title, String message, String okLabel, String cancelLabel, bool isDestructiveAction: false, AdaptiveStyle style: AdaptiveStyle.adaptive, VerticalDirection actionsOverflowDirection: VerticalDirection.up}) Future<List<String>>

Enums

AdaptiveStyle
OkCancelAlertDefaultType
OkCancelResult