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

刘海屏键盘高度获取安全区底部时永远是0 #68

Open
kennenfromchina opened this issue Aug 25, 2021 · 0 comments
Open

刘海屏键盘高度获取安全区底部时永远是0 #68

kennenfromchina opened this issue Aug 25, 2021 · 0 comments

Comments

@kennenfromchina
Copy link

kennenfromchina commented Aug 25, 2021

  static double? bottomPadding;

  static double getHeight(BuildContext context) {
    if (bottomPadding == null) {
      bottomPadding = MediaQuery.of(context).padding.bottom;
    }
    print("##### bottomPadding = $bottomPadding");
    return _buttonHeight * _rowLength +
        (bottomPadding ?? 0) +
        _completeButtonHeight;
  }

iOS14.6以上的版本,导致键盘无法完全展示
正常键盘——带有完成按钮
异常图片——因为高度问题不显示完成按钮

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