mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This change exposes the view safe area insets (introduced in iOS 11) to the framework via MediaQuery.of(context).padding. Safe area insets are the view insets (padding) inside of which content can be relied on to display without truncation/clipping, as would occur with e.g. the iPhone X sensor notch. As this API was added in iOS 11, we place it behind a runtime guard checking OS level. Until the runtime support for @avialable lands in the next Fuchsia buildtools rev, ignore -Wunguarded-availability-new around the safe area insets check and use an FML runtime check instead.