MobileMockupsGridBlock.builder constructor

const MobileMockupsGridBlock.builder({
  1. Key? key,
  2. MobileMockupsGridBlockDevice device = MobileMockupsGridBlockDevice.auto,
  3. bool isCarousel = false,
  4. double? width,
  5. double breakpoint = 600.0,
  6. double gap = 24.0,
  7. double? mobileContainerHeight,
  8. double mobileViewportFraction = 0.78,
  9. int pcItemsPerView = 4,
  10. bool playInViewportOnly = true,
  11. Duration autoPlayDelay = const Duration(milliseconds: 1200),
  12. required int count,
  13. required IndexedWidgetBuilder builder,
  14. ValueChanged<int>? onItemTap,
  15. Widget? bioMarker,
  16. String title = 'Title',
  17. Widget? titleWidget,
  18. bool hasSubtitle = true,
  19. String subtitle = 'Subtitle',
  20. Widget? subtitleWidget,
  21. bool hasDescription = false,
  22. String description = 'Description',
  23. Widget? descriptionWidget,
  24. Widget? logoWidget,
  25. String? logoAssetPath,
  26. VoidCallback? onLogoTap,
  27. bool? hasBadgeBar,
  28. bool hasBadgeOne = false,
  29. String badge1Label = 'Label',
  30. bool hasBadgeTwo = true,
  31. String badge2Label = 'Label',
  32. bool hasBadgeThree = true,
  33. String badge3Label = 'Label',
  34. List<Widget>? badges,
})

Convenience builder constructor for dynamic list rendering.

Implementation

const MobileMockupsGridBlock.builder({
  super.key,
  this.device = MobileMockupsGridBlockDevice.auto,
  this.isCarousel = false,
  this.width,
  this.breakpoint = 600.0,
  this.gap = 24.0,
  this.mobileContainerHeight,
  this.mobileViewportFraction = 0.78,
  this.pcItemsPerView = 4,
  this.playInViewportOnly = true,
  this.autoPlayDelay = const Duration(milliseconds: 1200),
  required int count,
  required IndexedWidgetBuilder builder,
  this.onItemTap,
  this.bioMarker,
  this.title = 'Title',
  this.titleWidget,
  this.hasSubtitle = true,
  this.subtitle = 'Subtitle',
  this.subtitleWidget,
  this.hasDescription = false,
  this.description = 'Description',
  this.descriptionWidget,
  this.hasLogo,
  this.logo,
  this.logoWidget,
  this.logoAssetPath,
  this.onLogoTap,
  this.hasBadgeBar,
  this.hasBadgeOne = false,
  this.badge1Label = 'Label',
  this.hasBadgeTwo = true,
  this.badge2Label = 'Label',
  this.hasBadgeThree = true,
  this.badge3Label = 'Label',
  this.badges,
})  : imageUrls = null,
      videoUrls = null,
      items = null,
      itemCount = count,
      itemBuilder = builder;