GridCarousel<T> constructor
const
GridCarousel<T> ({
- Key? key,
- String? title,
- required List<
T> items, - GridSize size = const GridSize(width: double.infinity, height: double.infinity),
- int rows = 1,
- int columns = 3,
- required Widget cellBuilder(
- T
- TextStyle titleStyle = const TextStyle(color: Color.fromARGB(255, 82, 82, 82), fontWeight: FontWeight.bold),
- EdgeInsets? titlePadding,
- GridCarouselIndicatorConfig indicatorConfig = const GridCarouselIndicatorConfig(currentPageColor: Colors.orange, otherPagesColor: Color.fromARGB(255, 82, 82, 82)),
Implementation
const GridCarousel(
{super.key,
this.title,
required this.items,
this.size =
const GridSize(width: double.infinity, height: double.infinity),
this.rows = 1,
this.columns = 3,
required this.cellBuilder,
this.titleStyle = const TextStyle(
color: Color.fromARGB(255, 82, 82, 82), fontWeight: FontWeight.bold),
this.titlePadding,
this.indicatorConfig = const GridCarouselIndicatorConfig(
currentPageColor: Colors.orange,
otherPagesColor: Color.fromARGB(255, 82, 82, 82))});