showCloseApp static method

dynamic showCloseApp(
  1. BuildContext context
)

Implementation

static showCloseApp(BuildContext context) {
  return showCupertinoDialog(
    context: context,
    barrierDismissible: false,
    builder: (context) => CupertinoAlertDialog(
      title: const Text("Network Error"),
      content: const Text(
          "We are facing some server issue please retry after some time."),
      actions: <Widget>[
        CupertinoDialogAction(
          child: const Text("close app"),
          onPressed: () {
            exit(0);
          },
        ),
      ],
    ),
  );
}