existAppDialog static method

dynamic existAppDialog()

Implementation

static  existAppDialog() {
    return CommonDialog.commonDialogs(
        dismiss: false,
        body: Column(
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.start,
              children: [
                Container(
                  padding: EdgeInsets.all(margin_8),
                  decoration: const BoxDecoration(
                      shape: BoxShape.circle, color: CommonColors.primaryColor),
                  child: const Icon(
                    Icons.question_mark,
                    color: Colors.white,

                  ),
                ),
                sizedBox(width: margin_20),
                commonText(exitAppStr.tr,
                    fontWeight: FontWeight.w500,
                    color: CommonColors.subtitleColor,
                    textHeight: 1.4,
                    align: TextAlign.center,
                    fontSize: font_16),
              ],
            ),
            sizedBox(height: margin_20),
            commonText(exitStr.tr,
                fontWeight: FontWeight.w400,
                color: CommonColors.subtitleColor,
                textHeight: 1.4,
                align: TextAlign.center),
            sizedBox(height: margin_20),
            Row(
              mainAxisAlignment: MainAxisAlignment.end,
              children: [
                CustomButton(
                  onClick: () {
                    Get.back();
                  },
                  buttonColor: CommonColors.primaryColor,
                  cornerRadius: radius_30,
                  verticalPadding: margin_4,
                  horizontalPadding: margin_24,
                  buttonText: noStr.tr,
                ),
                sizedBox(width: margin_16),
                CustomButton(
                  onClick: () {
                    if (Platform.isIOS) {
                      exit(0);
                    }
                    if (Platform.isAndroid) {
                      SystemNavigator.pop();
                    }
                  },
                  buttonColor:CommonColors.primaryColor,
                  cornerRadius: radius_30,
                  verticalPadding: margin_4,
                  horizontalPadding: margin_24,
                  buttonText: yesStr.tr,
                )
              ],
            )
          ],
        ));
  }