底部 SystemUiOverlay 状态栏未正确隐藏
The bottom SystemUiOverlay status bar is not hidden properly
我正在尝试使用 SystemChrome.setEnabledSystemUIOverlays
禁用顶部和底部状态栏,它本身按预期工作。
但是,底栏 "disappear" 不正确。当然,它会删除实际的本机 android 导航按钮,但不会删除按钮使用的 space。
我在下面附上了屏幕截图。
有没有人遇到过这样的事情并且能够阐明它?
目前还没有解决这个问题。这只是写作时flutter的一个限制。
根据: https://github.com/flutter/flutter/issues/14432
When status bar is hidden, app bar's height remains the same #14432
需要注意的是,这似乎只影响纵向模式。横向模式似乎没有这个问题。
从 PR 开始,Android 应该可以正常工作。
尚不清楚它是否适用于 iOS。
flutter/engine#6282 fixes this problem for Android. A similar fix for iOS should exist and I will look into it.
I was informed that the iOS bug was fixed recently. Is anyone still having issues with the iOS top padding?
我正在尝试使用 SystemChrome.setEnabledSystemUIOverlays
禁用顶部和底部状态栏,它本身按预期工作。
但是,底栏 "disappear" 不正确。当然,它会删除实际的本机 android 导航按钮,但不会删除按钮使用的 space。
我在下面附上了屏幕截图。
有没有人遇到过这样的事情并且能够阐明它?
目前还没有解决这个问题。这只是写作时flutter的一个限制。
根据: https://github.com/flutter/flutter/issues/14432
When status bar is hidden, app bar's height remains the same #14432
需要注意的是,这似乎只影响纵向模式。横向模式似乎没有这个问题。
从 PR 开始,Android 应该可以正常工作。
尚不清楚它是否适用于 iOS。
flutter/engine#6282 fixes this problem for Android. A similar fix for iOS should exist and I will look into it.
I was informed that the iOS bug was fixed recently. Is anyone still having issues with the iOS top padding?