Skip to content

Commit 3986622

Browse files
committed
Fix PR comments
1 parent ef8f64b commit 3986622

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

packages/flutter/lib/src/material/card_theme.dart

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,44 +77,44 @@ class CardTheme extends InheritedWidget with Diagnosticable {
7777

7878
/// Overrides the default value for [Card.clipBehavior].
7979
///
80-
/// This property is obsolete: please use the [CardThemeData.clipBehavior]
81-
/// property in [data] instead.
80+
/// This property is obsolete and will be deprecated in a future release:
81+
/// please use the [CardThemeData.clipBehavior] property in [data] instead.
8282
Clip? get clipBehavior => _data != null ? _data.clipBehavior : _clipBehavior;
8383

8484
/// Overrides the default value for [Card.color].
8585
///
86-
/// This property is obsolete: please use the [CardThemeData.color] property
87-
/// in [data] instead.
86+
/// This property is obsolete and will be deprecated in a future release:
87+
/// please use the [CardThemeData.color] property in [data] instead.
8888
Color? get color => _data != null ? _data.color : _color;
8989

9090
/// Overrides the default value for [Card.surfaceTintColor].
9191
///
92-
/// This property is obsolete: please use the [CardThemeData.surfaceTintColor] property
93-
/// in [data] instead.
92+
/// This property is obsolete and will be deprecated in a future release:
93+
/// please use the [CardThemeData.surfaceTintColor] property in [data] instead.
9494
Color? get surfaceTintColor => _data != null ? _data.surfaceTintColor : _surfaceTintColor;
9595

9696
/// Overrides the default value for [Card.shadowColor].
9797
///
98-
/// This property is obsolete: please use the [CardThemeData.shadowColor] property
99-
/// in [data] instead.
98+
/// This property is obsolete and will be deprecated in a future release:
99+
/// please use the [CardThemeData.shadowColor] property in [data] instead.
100100
Color? get shadowColor => _data != null ? _data.shadowColor : _shadowColor;
101101

102102
/// Overrides the default value for [Card.elevation].
103103
///
104-
/// This property is obsolete: please use the [CardThemeData.elevation] property
105-
/// in [data] instead.
104+
/// This property is obsolete and will be deprecated in a future release:
105+
/// please use the [CardThemeData.elevation] property in [data] instead.
106106
double? get elevation => _data != null ? _data.elevation : _elevation;
107107

108108
/// Overrides the default value for [Card.margin].
109109
///
110-
/// This property is obsolete: please use the [CardThemeData.margin] property
111-
/// in [data] instead.
110+
/// This property is obsolete and will be deprecated in a future release:
111+
/// please use the [CardThemeData.margin] property in [data] instead.
112112
EdgeInsetsGeometry? get margin => _data != null ? _data.margin : _margin;
113113

114114
/// Overrides the default value for [Card.shape].
115115
///
116-
/// This property is obsolete: please use the [CardThemeData.shape] property
117-
/// in [data] instead.
116+
/// This property is obsolete and will be deprecated in a future release:
117+
/// please use the [CardThemeData.shape] property in [data] instead.
118118
ShapeBorder? get shape => _data != null ? _data.shape : _shape;
119119

120120
/// The properties used for all descendant [Card] widgets.
@@ -132,6 +132,9 @@ class CardTheme extends InheritedWidget with Diagnosticable {
132132

133133
/// Creates a copy of this object with the given fields replaced with the
134134
/// new values.
135+
///
136+
/// This method is obsolete and will be deprecated in a future release:
137+
/// please use the [CardThemeData.copyWith] instead.
135138
CardTheme copyWith({
136139
Clip? clipBehavior,
137140
Color? color,
@@ -164,6 +167,9 @@ class CardTheme extends InheritedWidget with Diagnosticable {
164167
/// Linearly interpolate between two Card themes.
165168
///
166169
/// {@macro dart.ui.shadow.lerp}
170+
///
171+
/// This method is obsolete and will be deprecated in a future release:
172+
/// please use the [CardThemeData.lerp] instead.
167173
static CardTheme lerp(CardTheme? a, CardTheme? b, double t) {
168174
if (identical(a, b) && a != null) {
169175
return a;

0 commit comments

Comments
 (0)