MobileMockupsGridBlock constructor

const MobileMockupsGridBlock({
  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. List<String>? imageUrls,
  11. List<String>? videoUrls,
  12. bool playInViewportOnly = true,
  13. Duration autoPlayDelay = const Duration(milliseconds: 1200),
  14. List<Widget>? items,
  15. int? itemCount,
  16. IndexedWidgetBuilder? itemBuilder,
  17. ValueChanged<int>? onItemTap,
  18. Widget? bioMarker,
  19. String title = 'Title',
  20. Widget? titleWidget,
  21. bool hasSubtitle = true,
  22. String subtitle = 'Subtitle',
  23. Widget? subtitleWidget,
  24. bool hasDescription = false,
  25. String description = 'Description',
  26. Widget? descriptionWidget,
  27. Widget? logoWidget,
  28. String? logoAssetPath,
  29. VoidCallback? onLogoTap,
  30. bool? hasBadgeBar,
  31. bool hasBadgeOne = false,
  32. String badge1Label = 'Label',
  33. bool hasBadgeTwo = true,
  34. String badge2Label = 'Label',
  35. bool hasBadgeThree = true,
  36. String badge3Label = 'Label',
  37. List<Widget>? badges,
})

Creates a MobileMockupsGridBlock instance.

Implementation

const MobileMockupsGridBlock({
  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.imageUrls,
  this.videoUrls,
  this.playInViewportOnly = true,
  this.autoPlayDelay = const Duration(milliseconds: 1200),
  this.items,
  this.itemCount,
  this.itemBuilder,
  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,
});