HorizontalListView constructor
const
HorizontalListView({
- required double height,
- required double width,
- required List<
Widget> list, - double itemWidth = 300,
- Icon? iconPrevious,
- Icon? iconNext,
- dynamic onChanged(
- int index
- VoidCallback? onNextPressed,
- VoidCallback? onPreviousPressed,
- Duration durationAnimation = const Duration(milliseconds: 500),
- Curve curveAnimation = Curves.ease,
- bool enableManualScroll = true,
- bool isStartedFromEnd = false,
- Key? key,
Implementation
const HorizontalListView({
required this.height,
required this.width,
required this.list,
this.itemWidth = 300,
this.iconPrevious,
this.iconNext,
this.onChanged,
this.onNextPressed,
this.onPreviousPressed,
this.durationAnimation = const Duration(milliseconds: 500),
this.curveAnimation = Curves.ease,
this.enableManualScroll = true,
this.isStartedFromEnd = false,
Key? key,
}) : super(key: key);