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

全屏遮罩在键盘收起时看到遮罩高度扩展到键盘底部的动画(不是真的全屏而是当前范围) #110

Open
Ssiswent opened this issue Jan 3, 2025 · 0 comments

Comments

@Ssiswent
Copy link

Ssiswent commented Jan 3, 2025

添加全屏遮罩有问题,通常情况下是正常的,但是如果在键盘弹出时showToastWidget,展示范围其实只是除去键盘的范围,在dismiss toast之前收起键盘的话,就能看到遮罩高度扩展到键盘底部的动画

static ToastFuture showLoadingToast() {
    return showToastWidget(
      Container(
        color: Colors.black.withOpacity(0.5),
        child: Center(child: Text('text')),
      ),
      duration: 60.seconds,
      handleTouch: true,
      dismissOtherToast: true,
      position: ToastPosition.center,
    );
  }

视频:

ScreenRecording_01-03-2025.15-28-14_1.MP4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant