HeroBlock constructor
const
HeroBlock({
- Key? key,
- double? width,
- HeroBlockDevice device = HeroBlockDevice.auto,
- double breakpoint = 500.0,
- ImageProvider<
Object> ? avatar, - String? avatarUrl,
- String? avatarAssetPath,
- Widget? avatarWidget,
- double avatarSize = 84.0,
- BorderRadius? avatarRadius,
- bool hasAvatar = true,
- String title = 'Hi, I am Nayan &\nI build things.',
- Widget? titleWidget,
- bool hasSubtitle = true,
- String subtitle = 'Principal UX Designer & Engineer @SIG',
- Widget? subtitleWidget,
- bool hasActions = true,
- String primaryButtonLabel = 'Book a call',
- IconData? primaryButtonIcon = Icons.videocam_outlined,
- bool? hasPrimaryButtonIcon,
- VoidCallback? onPrimaryTap,
- bool hasPrimaryButton = true,
- String secondaryButtonLabel = 'Download CV',
- IconData? secondaryButtonIcon = Icons.description_outlined,
- bool? hasSecondaryButtonIcon,
- VoidCallback? onSecondaryTap,
- bool hasSecondaryButton = true,
- 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,
});