import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';

class LoadingDialog {

  static void show({required int displayTime}) {
    SmartDialog.showLoading(displayTime: Duration(milliseconds: displayTime));
  }

  static void showLoading() {
    SmartDialog.showLoading();
  }
  static void showText(String msg, {bool backDismiss = false}) {
    SmartDialog.showLoading(
      msg: msg,
      backType: backDismiss ? SmartBackType.normal : SmartBackType.block,
    );
  }

  static void hide() {
    SmartDialog.dismiss();
  }
}
