ColorAnimatingListView constructor

ColorAnimatingListView({
  1. required List<Widget> children,
  2. required List<Color> colors,
  3. Duration animationDuration = const Duration(seconds: 1),
})

Creates a ListView which changes background color based on the widget or widgets visible.

children.length should be equal to colors.length.

Implementation

ColorAnimatingListView({
  required this.children,
  required this.colors,
  this.animationDuration = const Duration(seconds: 1),
});