showSelectUsersDialog function
Implementation
Future<List<String>?> showSelectUsersDialog({
required BuildContext context,
required List<String> projectEmails,
List<String> initialValue = const [],
String title = 'Select users',
String description = 'Choose one or more project users.',
String confirmLabel = 'Apply',
String cancelLabel = 'Cancel',
}) {
return showShadDialog<List<String>>(
context: context,
builder: (context) => SelectUsersDialog(
projectEmails: projectEmails,
initialValue: initialValue,
title: title,
description: description,
confirmLabel: confirmLabel,
cancelLabel: cancelLabel,
),
);
}