show method

void show(
  1. BuildContext context
)

Implementation

void show(BuildContext context) {
  if (!context.mounted || _isShowing) return;

  _isShowing = true;

  showDialog(
    context: context,
    barrierDismissible: false,
    builder: (_) => AlertDialog(
      backgroundColor: Colors.transparent,
      elevation: 0,
      contentPadding: EdgeInsets.zero,
      content: Center(
        child: Stack(
          alignment: Alignment.center,
          children: [
            SizedBox(
              width: 100,
              height: 100,
              child: CircularProgressIndicator(strokeWidth: 4,color: kglobal.shared.themeclr.value),
            ),
      /*      Image.asset(
              'packages/oneapp_sdk/assets/images/logo.png',
              width: 60,
              height: 60,
            ),*/
          ],
        ),
      ),
    ),
  ).then((_) {
    // ✅ Reset flag when dialog is dismissed by any means
    _isShowing = false;
  });
}