Deprecate AnimatedListItemBuilder and AnimatedListRemovedItemBuilder (#113131)
This commit is contained in:
@@ -50,11 +50,13 @@ class _AnimatedListSampleState extends State<AnimatedListSample> {
|
||||
);
|
||||
}
|
||||
|
||||
// Used to build an item after it has been removed from the list. This method
|
||||
// is needed because a removed item remains visible until its animation has
|
||||
// completed (even though it's gone as far as this ListModel is concerned).
|
||||
// The widget will be used by the [AnimatedListState.removeItem] method's
|
||||
// [AnimatedListRemovedItemBuilder] parameter.
|
||||
/// The builder function used to build items that have been removed.
|
||||
///
|
||||
/// Used to build an item after it has been removed from the list. This method
|
||||
/// is needed because a removed item remains visible until its animation has
|
||||
/// completed (even though it's gone as far as this ListModel is concerned).
|
||||
/// The widget will be used by the [AnimatedListState.removeItem] method's
|
||||
/// [AnimatedRemovedItemBuilder] parameter.
|
||||
Widget _buildRemovedItem(
|
||||
int item, BuildContext context, Animation<double> animation) {
|
||||
return CardItem(
|
||||
|
||||
@@ -53,12 +53,13 @@ class _SliverAnimatedListSampleState extends State<SliverAnimatedListSample> {
|
||||
);
|
||||
}
|
||||
|
||||
// Used to build an item after it has been removed from the list. This
|
||||
// method is needed because a removed item remains visible until its
|
||||
// animation has completed (even though it's gone as far this ListModel is
|
||||
// concerned). The widget will be used by the
|
||||
// [AnimatedListState.removeItem] method's
|
||||
// [AnimatedListRemovedItemBuilder] parameter.
|
||||
/// The builder function used to build items that have been removed.
|
||||
///
|
||||
/// Used to build an item after it has been removed from the list. This method
|
||||
/// is needed because a removed item remains visible until its animation has
|
||||
/// completed (even though it's gone as far this ListModel is concerned). The
|
||||
/// widget will be used by the [AnimatedListState.removeItem] method's
|
||||
/// [AnimatedRemovedItemBuilder] parameter.
|
||||
Widget _buildRemovedItem(
|
||||
int item, BuildContext context, Animation<double> animation) {
|
||||
return CardItem(
|
||||
|
||||
Reference in New Issue
Block a user