showSelectUsersDialog function

Future<List<String>?> showSelectUsersDialog({
  1. required BuildContext context,
  2. required List<String> projectEmails,
  3. List<String> initialValue = const [],
  4. String title = 'Select users',
  5. String description = 'Choose one or more project users.',
  6. String confirmLabel = 'Apply',
  7. String cancelLabel = 'Cancel',
})

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,
    ),
  );
}