scaleItem method
Widget
scaleItem(
- BuildContext context,
- dynamic data,
- int index,
- dynamic animation, {
- Widget? child,
Implementation
Widget scaleItem(BuildContext context, dynamic data, int index, animation, {Widget? child}) {
final widget = child ?? renderListItem(data, index, animation);
return SizeTransition(
axis: orientation(),
sizeFactor: animation,
child: ScaleTransition(
alignment: Alignment.center,
scale: animation,
child: widget
),
);
}