adaptive_dialog library Null safety

Classes

AdaptiveDialog
Manage common adaptive_dialog settings, etc.
AdaptiveDialogMacOSConfiguration
Manage common macOS settings
AlertDialogAction<T>
Used for specifying showAlertDialog's actions.
DialogTextField
MaterialModalActionSheetConfiguration
SheetAction<T>
Used for specifying showModalActionSheet's actions.

Extensions

AlertDialogActionEx
AlertDialogActionListEx

Functions

showAlertDialog<T>({required BuildContext context, String? title, String? message, List<AlertDialogAction<T>> actions = const [], bool barrierDismissible = true, AdaptiveStyle? style, bool useActionSheetForCupertino = false, bool useActionSheetForIOS = false, bool useRootNavigator = true, VerticalDirection actionsOverflowDirection = VerticalDirection.up, bool fullyCapitalizedForMaterial = true, WillPopCallback? onWillPop, AdaptiveDialogBuilder? builder, Widget? macOSApplicationIcon}) Future<T?>
Show alert dialog, whose appearance is adaptive according to platform
showConfirmationDialog<T>({required BuildContext context, required String title, String? message, String? okLabel, String? cancelLabel, double? contentMaxHeight, List<AlertDialogAction<T>> actions = const [], T? initialSelectedActionKey, bool barrierDismissible = true, AdaptiveStyle? style, bool useRootNavigator = true, bool shrinkWrap = true, bool fullyCapitalizedForMaterial = true, WillPopCallback? onWillPop, AdaptiveDialogBuilder? builder}) Future<T?>
Show confirmation dialog, whose appearance is adaptive according to platform
showModalActionSheet<T>({required BuildContext context, String? title, String? message, List<SheetAction<T>> actions = const [], String? cancelLabel, AdaptiveStyle? style, bool isDismissible = true, bool useRootNavigator = true, MaterialModalActionSheetConfiguration? materialConfiguration, WillPopCallback? onWillPop, AdaptiveDialogBuilder? builder}) 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({required BuildContext context, String? title, String? message, String? okLabel, bool barrierDismissible = true, AdaptiveStyle? alertStyle, AdaptiveStyle? style, bool useActionSheetForCupertino = false, bool useActionSheetForIOS = false, bool useRootNavigator = true, VerticalDirection actionsOverflowDirection = VerticalDirection.up, bool fullyCapitalizedForMaterial = true, WillPopCallback? onWillPop, AdaptiveDialogBuilder? builder}) Future<OkCancelResult>
Show OK alert dialog, whose appearance is adaptive according to platform
showOkCancelAlertDialog({required BuildContext context, String? title, String? message, String? okLabel, String? cancelLabel, OkCancelAlertDefaultType? defaultType, bool isDestructiveAction = false, bool barrierDismissible = true, AdaptiveStyle? alertStyle, AdaptiveStyle? style, bool useActionSheetForCupertino = false, bool useActionSheetForIOS = false, bool useRootNavigator = true, VerticalDirection actionsOverflowDirection = VerticalDirection.up, bool fullyCapitalizedForMaterial = true, WillPopCallback? onWillPop, AdaptiveDialogBuilder? builder}) Future<OkCancelResult>
Show OK/Cancel alert dialog, whose appearance is adaptive according to platform
showTextAnswerDialog({required BuildContext context, required String keyword, String? title, String? message, String? okLabel, String? cancelLabel, bool isDestructiveAction = false, bool barrierDismissible = true, String? hintText, String? retryTitle, String? retryMessage, String? retryOkLabel, String? retryCancelLabel, AdaptiveStyle? style, bool useRootNavigator = true, VerticalDirection actionsOverflowDirection = VerticalDirection.up, bool fullyCapitalizedForMaterial = true, WillPopCallback? onWillPop, bool autoSubmit = false, bool isCaseSensitive = true, AdaptiveDialogBuilder? builder}) Future<bool>
showTextInputDialog({required BuildContext context, required List<DialogTextField> textFields, String? title, String? message, String? okLabel, String? cancelLabel, bool isDestructiveAction = false, bool barrierDismissible = true, AdaptiveStyle? style, bool useRootNavigator = true, VerticalDirection actionsOverflowDirection = VerticalDirection.up, bool fullyCapitalizedForMaterial = true, WillPopCallback? onWillPop, bool autoSubmit = false, AdaptiveDialogBuilder? builder}) Future<List<String>?>

Enums

AdaptiveStyle
OkCancelAlertDefaultType
OkCancelResult

Typedefs

AdaptiveDialogBuilder = Widget Function(BuildContext context, Widget child)