import 'package:flutter/cupertino.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
import 'package:keyboard/dialog/login/login_dialog_controller.dart';
import '../../module/login/login_controller.dart';
import 'login_dialog_view.dart';

class LoginDialog {
  static const String TAG = "LoginDialog";

  static void show() {
    SmartDialog.show(
      backType: SmartBackType.normal,
      clickMaskDismiss: true,
      alignment: Alignment.bottomCenter,
      animationType: SmartAnimationType.centerScale_otherSlide,

      tag: TAG,
      keepSingle: true,
      onDismiss: () => Get.delete<LoginDialogController>(),
      builder: (_) => const LoginDialogView(),
    );
  }
}
