arbisExitDialog static method

dynamic arbisExitDialog({
  1. required Widget mediumNative,
})

Implementation

static arbisExitDialog({required Widget mediumNative}) {
  return AwesomeDialog(
    context: Get.context!,
    animType: AnimType.scale,
    dialogType: DialogType.warning,
    headerAnimationLoop: true,
    customHeader:
        Lottie.asset("packages/arbis_flutter/assets/41417-close.json"),
    padding: EdgeInsets.all(10.h),
    body: Column(
      children: [
        Text(
          "Do you want to exit?",
          style: TextStyle(fontWeight: FontWeight.bold),
        ),
        // Spacer(),
        SizedBox(
          height: 20.h,
        ),
        Row(
          children: [
            Expanded(
              child: InkWell(
                onTap: () {
                  exit(0);
                },
                child: Container(
                  margin: EdgeInsets.all(10.h),
                  alignment: Alignment.center,
                  // width: 500.w,
                  padding: EdgeInsets.all(10.h),
                  decoration: BoxDecoration(
                      border: Border.all(color: Colors.grey),
                      color: Colors.white,
                      borderRadius: BorderRadius.all(Radius.circular(10))),
                  child: Text(
                    "Yes",
                    style: TextStyle(color: Colors.black, fontSize: 15.w),
                  ),
                ),
              ),
            ),
            Expanded(
              child: InkWell(
                onTap: () {
                  Get.back();
                },
                child: Container(
                  margin: EdgeInsets.all(10.h),
                  alignment: Alignment.center,
                  // width: 500.w,
                  padding: EdgeInsets.all(10.h),
                  decoration: BoxDecoration(
                      color: Colors.black,
                      borderRadius: BorderRadius.all(Radius.circular(10))),
                  child: Text(
                    "No",
                    style: TextStyle(color: Colors.white, fontSize: 15.w),
                  ),
                ),
              ),
            )
          ],
        ),
        SizedBox(
          height: 20.h,
        ),
        mediumNative
      ],
    ),
    title: 'This is Ignored',
    desc: 'This is also Ignored',
  )..show();
}