Handle double-height status bar on iOS (#3357)
* Handle double-height status bar on iOS In certain cases, iOS displays a double-height status bar (e.g., when an application is using device location or while in a call). In such cases, iOS offsets the app view origin by 20px, reduces view height by 20px, then overlays a 40px opaque status bar: 20px covering the newly opened 20px gap at the top of the screen, 20px covering the top 20px of the view, which had previously been under the standard-sized status bar. Flutter previously set top padding to the height of the status bar, which resulted in 40px padding with a double-sized status bar. However, the padding should match the portion of the status bar overlapping the view, which is 20px. Note that the final case is the one in which no status bar is shown and padding should be zero. * Only apply status bar padding on root views
Showing
想要评论请 注册 或 登录