Restore the ViewConfiguration.displayFeatures doc template (flutter/engine#40041)

Restore the ViewConfiguration.displayFeatures doc template
This commit is contained in:
Jason Simmons
2023-03-02 21:12:22 -08:00
committed by GitHub
parent 378b986e90
commit c9ebd42ba3

View File

@@ -233,6 +233,7 @@ class FlutterView {
/// touch slop constant.
GestureSettings get gestureSettings => _viewConfiguration.gestureSettings;
/// {@template dart.ui.ViewConfiguration.displayFeatures}
/// Areas of the display that are obstructed by hardware features.
///
/// This list is populated only on Android. If the device has no display
@@ -249,6 +250,7 @@ class FlutterView {
/// Folding [DisplayFeature]s like the [DisplayFeatureType.hinge] and
/// [DisplayFeatureType.fold] also have a [DisplayFeature.state] which can be
/// used to determine the posture the device is in.
/// {@endtemplate}
///
/// When this changes, [PlatformDispatcher.onMetricsChanged] is called.
///