Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialog和loading显示/隐藏 异常 #192

Closed
CmosLee opened this issue May 28, 2024 · 1 comment
Closed

dialog和loading显示/隐藏 异常 #192

CmosLee opened this issue May 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working no response The issuer did not respond

Comments

@CmosLee
Copy link

CmosLee commented May 28, 2024

版本信息

  • Flutter版本:[举例:v3.19.6]
  • flutter_smart_dialog版本:[举例:v4.9.7+6]

描述bug/需求

下面的代码可以直接调用调试,第一次调用test one和test two都会显示,但是正常应该只显示test two。再次调用只显示test one不显示test two。项目中也是类似的问题,不显示后面的dialog。这个问题再4.9.7之后的小版本都有,4.9.6版本正常

问题demo

 static void _showDialog() {
    SmartDialog.showLoading<void>(msg: "test one");
    SmartDialog.dismiss<void>(status: SmartStatus.loading);
    SmartDialog.show<void>(
      clickMaskDismiss: false,
      builder: (_) {
        Widget child = Container(
          height: 80,
          width: 180,
          color: Colors.black,
          alignment: Alignment.center,
          child: const Text(
            'test two',
            style: TextStyle(color: Colors.white),
          ),
        );
        return child;
      },
      displayTime: const Duration(milliseconds: 2000),
      keepSingle: true,
      backDismiss: false,
    );
  }
@xdd666t xdd666t self-assigned this May 28, 2024
@CmosLee CmosLee closed this as completed May 28, 2024
@CmosLee CmosLee reopened this May 28, 2024
@xdd666t xdd666t added the bug Something isn't working label Jun 1, 2024
@xdd666t
Copy link
Member

xdd666t commented Jun 1, 2024

  • 问题已解决, 请使用新版本
dependencies:
  flutter_smart_dialog: ^4.9.7+7

xdd666t added a commit that referenced this issue Jun 3, 2024
@xdd666t xdd666t added the no response The issuer did not respond label Jun 4, 2024
@xdd666t xdd666t closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no response The issuer did not respond
Projects
None yet
Development

No branches or pull requests

2 participants