GridCarousel<T> constructor

const GridCarousel<T>({
  1. Key? key,
  2. String? title,
  3. required List<T> items,
  4. GridSize size = const GridSize(width: double.infinity, height: double.infinity),
  5. int rows = 1,
  6. int columns = 3,
  7. required Widget cellBuilder(
    1. T
    ),
  8. TextStyle titleStyle = const TextStyle(color: Color.fromARGB(255, 82, 82, 82), fontWeight: FontWeight.bold),
  9. EdgeInsets? titlePadding,
  10. 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))});