Skip to content

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

@Ssiswent

Description

@Ssiswent

添加全屏遮罩有问题,通常情况下是正常的,但是如果在键盘弹出时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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions