showGenericDialog<T> function

Future<T?> showGenericDialog<T>(
  1. BuildContext context, {
  2. required String title,
  3. required Widget content,
  4. List<DialogAction>? actions,
  5. bool shrinkWrap = true,
})

Shows a GenericDialog with the given title and content to the user.

Implementation

Future<T?> showGenericDialog<T>(
  BuildContext context, {
  required String title,
  required Widget content,
  List<DialogAction>? actions,
  bool shrinkWrap = true,
}) {
  return showAnimatedDialog<T>(
    context: context,
    pageBuilder: (_, __, ___) => GenericDialog(
      title: title,
      content: content,
      actions: actions,
      shrinkWrap: shrinkWrap,
    ),
  );
}