HeroBlock constructor

const HeroBlock({
  1. Key? key,
  2. double? width,
  3. HeroBlockDevice device = HeroBlockDevice.auto,
  4. double breakpoint = 500.0,
  5. ImageProvider<Object>? avatar,
  6. String? avatarUrl,
  7. String? avatarAssetPath,
  8. Widget? avatarWidget,
  9. double avatarSize = 84.0,
  10. BorderRadius? avatarRadius,
  11. bool hasAvatar = true,
  12. String title = 'Hi, I am Nayan &\nI build things.',
  13. Widget? titleWidget,
  14. bool hasSubtitle = true,
  15. String subtitle = 'Principal UX Designer & Engineer @SIG',
  16. Widget? subtitleWidget,
  17. bool hasActions = true,
  18. String primaryButtonLabel = 'Book a call',
  19. IconData? primaryButtonIcon = Icons.videocam_outlined,
  20. bool? hasPrimaryButtonIcon,
  21. VoidCallback? onPrimaryTap,
  22. bool hasPrimaryButton = true,
  23. String secondaryButtonLabel = 'Download CV',
  24. IconData? secondaryButtonIcon = Icons.description_outlined,
  25. bool? hasSecondaryButtonIcon,
  26. VoidCallback? onSecondaryTap,
  27. bool hasSecondaryButton = true,
  28. List<Widget>? actions,
})

Creates a HeroBlock instance.

Implementation

const HeroBlock({
  super.key,
  this.width,
  this.device = HeroBlockDevice.auto,
  this.breakpoint = 500.0,
  this.avatar,
  this.avatarUrl,
  this.avatarAssetPath,
  this.avatarWidget,
  this.avatarSize = 84.0,
  this.avatarRadius,
  this.hasAvatar = true,
  this.title = 'Hi, I am Nayan &\nI build things.',
  this.titleWidget,
  this.hasSubtitle = true,
  this.subtitle = 'Principal UX Designer & Engineer @SIG',
  this.subtitleWidget,
  this.hasActions = true,
  this.primaryButtonLabel = 'Book a call',
  this.primaryButtonIcon = Icons.videocam_outlined,
  this.hasPrimaryButtonIcon,
  this.onPrimaryTap,
  this.hasPrimaryButton = true,
  this.secondaryButtonLabel = 'Download CV',
  this.secondaryButtonIcon = Icons.description_outlined,
  this.hasSecondaryButtonIcon,
  this.onSecondaryTap,
  this.hasSecondaryButton = true,
  this.actions,
});