MobileMockupsGridBlock.builder constructor
const
MobileMockupsGridBlock.builder({
- Key? key,
- MobileMockupsGridBlockDevice device = MobileMockupsGridBlockDevice.auto,
- bool isCarousel = false,
- double? width,
- double breakpoint = 600.0,
- double gap = 24.0,
- double? mobileContainerHeight,
- double mobileViewportFraction = 0.78,
- int pcItemsPerView = 4,
- bool playInViewportOnly = true,
- Duration autoPlayDelay = const Duration(milliseconds: 1200),
- required int count,
- required IndexedWidgetBuilder builder,
- ValueChanged<
int> ? onItemTap, - Widget? bioMarker,
- String title = 'Title',
- Widget? titleWidget,
- bool hasSubtitle = true,
- String subtitle = 'Subtitle',
- Widget? subtitleWidget,
- bool hasDescription = false,
- String description = 'Description',
- Widget? descriptionWidget,
- bool? hasLogo,
- ImageProvider<
Object> ? logo, - Widget? logoWidget,
- String? logoAssetPath,
- VoidCallback? onLogoTap,
- bool? hasBadgeBar,
- bool hasBadgeOne = false,
- String badge1Label = 'Label',
- bool hasBadgeTwo = true,
- String badge2Label = 'Label',
- bool hasBadgeThree = true,
- String badge3Label = 'Label',
- 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;