Deprecate WindowPadding (flutter/engine#39775)

This commit is contained in:
Michael Goderbauer
2023-02-22 14:30:25 -08:00
committed by GitHub
parent 60c5d00b8f
commit 88bccb1e13
2 changed files with 8 additions and 1 deletions

View File

@@ -1792,7 +1792,10 @@ class ViewPadding {
/// Deprecated. Will be removed in a future version of Flutter.
///
/// Use [ViewPadding] instead.
// TODO(goderbauer): deprecate this when framework has been migrated to ViewPadding.
@Deprecated(
'Use ViewPadding instead. '
'This feature was deprecated after v3.8.0-14.0.pre.',
)
typedef WindowPadding = ViewPadding;
/// Area of the display that may be obstructed by a hardware feature.

View File

@@ -395,6 +395,10 @@ abstract class ViewPadding {
}
}
@Deprecated(
'Use ViewPadding instead. '
'This feature was deprecated after v3.8.0-14.0.pre.',
)
typedef WindowPadding = ViewPadding;
class DisplayFeature {