showTextDialog<T> static method

Future<T?> showTextDialog<T>(
  1. BuildContext context,
  2. String title,
  3. String text, {
  4. List<Widget>? actions,
  5. String? okActionText,
  6. String? cancelActionText,
})

Shows a simple text dialog with the given title and text.

Compare showWidgetDialog for parameter details.

Implementation

static Future<T?> showTextDialog<T>(
  BuildContext context,
  String title,
  String text, {
  List<Widget>? actions,
  String? okActionText,
  String? cancelActionText,
}) =>
    showWidgetDialog<T>(
      context,
      Text(text),
      title: title,
      actions: actions,
      okActionText: okActionText,
      cancelActionText: cancelActionText,
    );