Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Dec 9, 2017

This adds support for scrolling the primary scroll view to the top on
status bar touches, on the iPhone X.

Notes:

  1. The iPhone X status bar doesn't change height when in in-call/etc.
    mode, and unlike other iPhones, does scroll to top when in in-call mode.
  2. No matter which model of iOS device, the top safe area inset doesn't
    change when in in-call mode. In in-call mode, the OS reduces the app
    view height by 20px off the top, and the double-height 'in-call' status
    bar covers this new inset (outside the view) and there continues to be a
    20px safe area in the app.

On iOS 11, rather than comparing status bar height to a hardcoded 20px
'standard height' we now compare to the top safe area inset (which is
always the standard status bar height, regardless of device). On iOS
versions prior to iOS 11, we use the previous logic.

Fixes flutter/flutter#13439

This adds support for scrolling the primary scroll view to the top on
status bar touches, on the iPhone X.

Notes:
1. The iPhone X status bar doesn't change height when in in-call/etc.
   mode, and unlike other iPhones, does scroll to top when in in-call mode.
2. No matter which model of iOS device, the top safe area inset doesn't
   change when in in-call mode. In in-call mode, the OS reduces the app
   view height by 20px off the top, and the double-height 'in-call' status
   bar covers the new OS (outside the view) and there continues to be a
   20px safe area in the app.

On iOS 11, rather than comparing status bar height to a hardcoded 20px
'standard height' it compares it to the top safe area inset (which is
always the standard status bar height, regardless of device). On iOS
versions earlier than iOS 11, it uses the previous logic.

Fixes flutter/flutter#13439
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants