import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:sn_progress_dialog/sn_progress_dialog.dart';

// class ProgressDialogDelayed {
//   late bool isDismissible;
//   ProgressDialogDelayed.show(context, {this.isDismissible = true}) {
//     ProgressDialog(context: context).show(barrierDismissible: isDismissible, max: 10, msg: 'Mohon ditunggu...',);
//   }
//   ProgressDialogDelayed.hide(context) {
//     Future.delayed(Duration(milliseconds: 500))
//         .then((value) => ProgressDialog(context: context).close());
//   }
// }
//
// class showSnackBarDelayed {
//   showSnackBarDelayed(key, message) {
//     Future.delayed(Duration(milliseconds: 500)).then((value) =>
//         key.currentState.showSnackBar(SnackBar(content: Text(message))));
//   }
// }
