showDialog method

Future<Process> showDialog(
  1. String title,
  2. String body,
  3. String height,
  4. String width,
)

Implementation

Future<Process> showDialog(
  final String title,
  final String body,
  final String height,
  final String width,
) =>
    Process.start(
      'bash',
      [
        '-c',
        // ignore: no_adjacent_strings_in_list
        "whiptail --title '$title' --msgbox "
            "'$body' '$height' '$width'"
      ],
      mode: ProcessStartMode.inheritStdio,
    );