Deprecates string for reorderable list in material_localizations (#124711)

deprecates the these strings since they are now moved into widgetslocalizations

migration guide https://github.com/flutter/website/pull/8543/files
This commit is contained in:
chunhtai 2023-04-17 13:03:06 -07:00 committed by GitHub
parent 2f45458e2c
commit 7424f3448d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,26 +424,50 @@ abstract class MaterialLocalizations {
/// The semantics label used for [ReorderableListView] to reorder an item in the
/// list to the start of the list.
@Deprecated(
'Use the reorderItemToStart from WidgetsLocalizations instead. '
'This feature was deprecated after v3.10.0-2.0.pre.'
)
String get reorderItemToStart;
/// The semantics label used for [ReorderableListView] to reorder an item in the
/// list to the end of the list.
@Deprecated(
'Use the reorderItemToEnd from WidgetsLocalizations instead. '
'This feature was deprecated after v3.10.0-2.0.pre.'
)
String get reorderItemToEnd;
/// The semantics label used for [ReorderableListView] to reorder an item in the
/// list one space up the list.
@Deprecated(
'Use the reorderItemUp from WidgetsLocalizations instead. '
'This feature was deprecated after v3.10.0-2.0.pre.'
)
String get reorderItemUp;
/// The semantics label used for [ReorderableListView] to reorder an item in the
/// list one space down the list.
@Deprecated(
'Use the reorderItemDown from WidgetsLocalizations instead. '
'This feature was deprecated after v3.10.0-2.0.pre.'
)
String get reorderItemDown;
/// The semantics label used for [ReorderableListView] to reorder an item in the
/// list one space left in the list.
@Deprecated(
'Use the reorderItemLeft from WidgetsLocalizations instead. '
'This feature was deprecated after v3.10.0-2.0.pre.'
)
String get reorderItemLeft;
/// The semantics label used for [ReorderableListView] to reorder an item in the
/// list one space right in the list.
@Deprecated(
'Use the reorderItemRight from WidgetsLocalizations instead. '
'This feature was deprecated after v3.10.0-2.0.pre.'
)
String get reorderItemRight;
/// The semantics hint to describe the tap action on an expanded [ExpandIcon].