alertExitApp function

Future<bool> alertExitApp()

Implementation

Future<bool> alertExitApp() {
  Get.defaultDialog(
    title: "39".tr,
    middleText: "40".tr,
    actions: [
      ElevatedButton(
        onPressed: () {
          exit(0);
        },
        child: const Text("conform"),
      ),
      ElevatedButton(
        onPressed: () {
          Get.back();
        },
        child: const Text("console"),
      ),
    ],
  );
  return Future.value(false);
}