showZetaDialog function
- BuildContext context, {
- ZetaDialogHeaderAlignment headerAlignment = ZetaDialogHeaderAlignment.center,
- Widget? icon,
- String? title,
- required String message,
- String? primaryButtonLabel,
- VoidCallback? onPrimaryButtonPressed,
- String? secondaryButtonLabel,
- VoidCallback? onSecondaryButtonPressed,
- String? tertiaryButtonLabel,
- VoidCallback? onTertiaryButtonPressed,
- bool? rounded,
- bool barrierDismissible = true,
Function to show a Zeta dialog.
Implementation
Future<bool?> showZetaDialog(
BuildContext context, {
ZetaDialogHeaderAlignment headerAlignment = ZetaDialogHeaderAlignment.center,
Widget? icon,
String? title,
required String message,
String? primaryButtonLabel,
VoidCallback? onPrimaryButtonPressed,
String? secondaryButtonLabel,
VoidCallback? onSecondaryButtonPressed,
String? tertiaryButtonLabel,
VoidCallback? onTertiaryButtonPressed,
bool? rounded,
bool barrierDismissible = true,
bool useRootNavigator = true,
}) =>
showDialog<bool?>(
context: context,
barrierDismissible: barrierDismissible,
useRootNavigator: useRootNavigator,
builder: (_) => _ZetaDialog(
headerAlignment: headerAlignment,
icon: icon,
title: title,
message: message,
primaryButtonLabel: primaryButtonLabel,
onPrimaryButtonPressed: onPrimaryButtonPressed,
secondaryButtonLabel: secondaryButtonLabel,
onSecondaryButtonPressed: onSecondaryButtonPressed,
tertiaryButtonLabel: tertiaryButtonLabel,
onTertiaryButtonPressed: onTertiaryButtonPressed,
rounded: rounded,
),
);