showAlertDialog method

Future<void> showAlertDialog(
  1. Widget widget, {
  2. bool barrierDismissible = true,
})

Show any widget as an alert dialog. This is a helper, and any customisation of the barrier should mean making your own.

Implementation

Future<void> showAlertDialog(Widget widget, {bool barrierDismissible = true}) async {
  await showDialog(
    context: inqvine.context,
    useSafeArea: true,
    barrierDismissible: barrierDismissible,
    builder: (_) {
      return widget;
    },
  );
}