Unverified Commit 15301a6f authored by nt4f04uNd's avatar nt4f04uNd Committed by GitHub

Fix AnimatedList code sample

parent 07cf2d34
......@@ -162,7 +162,7 @@ class _ActiveItem implements Comparable<_ActiveItem> {
/// }
/// }
///
/// typedef RemovedItemBuilder = Widget Function(int item, BuildContext context, Animation<double> animation);
/// typedef RemovedItemBuilder<T> = Widget Function(T item, BuildContext context, Animation<double> animation);
///
/// /// Keeps a Dart [List] in sync with an [AnimatedList].
/// ///
......@@ -181,7 +181,7 @@ class _ActiveItem implements Comparable<_ActiveItem> {
/// }) : _items = List<E>.from(initialItems ?? <E>[]);
///
/// final GlobalKey<AnimatedListState> listKey;
/// final RemovedItemBuilder removedItemBuilder;
/// final RemovedItemBuilder<E> removedItemBuilder;
/// final List<E> _items;
///
/// AnimatedListState? get _animatedList => listKey.currentState;
......@@ -197,7 +197,7 @@ class _ActiveItem implements Comparable<_ActiveItem> {
/// _animatedList!.removeItem(
/// index,
/// (BuildContext context, Animation<double> animation) {
/// return removedItemBuilder(index, context, animation);
/// return removedItemBuilder(removedItem, context, animation);
/// },
/// );
/// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment