showLogoutConfirmation static method

Future<bool?> showLogoutConfirmation(
  1. BuildContext context
)

Shows a logout confirmation dialog

Returns true if user confirmed logout, false if cancelled

Implementation

static Future<bool?> showLogoutConfirmation(BuildContext context) {
  return SavePointsDialog.show(
    context,
    title: 'Logout',
    message: 'Are you sure you want to logout?',
    icon: Icons.logout_rounded,
    iconColor: Colors.orange,
    confirmText: 'Logout',
    cancelText: 'Cancel',
    showCancelButton: true,
  );
}