BiographyBlock constructor
const
BiographyBlock({
- Key? key,
- BiographyBlockType type = BiographyBlockType.tall,
- BiographyBlockDevice device = BiographyBlockDevice.auto,
- String title = 'Title',
- Widget? titleWidget,
- bool hasSubtitle = true,
- String subtitle = 'Subtitle',
- Widget? subtitleWidget,
- bool hasDescription = true,
- String description = 'Description',
- Widget? descriptionWidget,
- bool hasLogo = true,
- ImageProvider<
Object> ? logo, - Widget? logoWidget,
- String? logoAssetPath,
- VoidCallback? onLogoTap,
- bool hasBadgeBar = true,
- bool hasBadgeOne = false,
- String badge1Label = 'Label',
- bool hasBadgeTwo = true,
- String badge2Label = 'Label',
- bool hasBadgeThree = true,
- String badge3Label = 'Label',
- List<
Widget> ? badges,
Creates a BiographyBlock instance.
Implementation
const BiographyBlock({
super.key,
this.type = BiographyBlockType.tall,
this.device = BiographyBlockDevice.auto,
this.title = 'Title',
this.titleWidget,
this.hasSubtitle = true,
this.subtitle = 'Subtitle',
this.subtitleWidget,
this.hasDescription = true,
this.description = 'Description',
this.descriptionWidget,
this.hasLogo = true,
this.logo,
this.logoWidget,
this.logoAssetPath,
this.onLogoTap,
this.hasBadgeBar = true,
this.hasBadgeOne = false,
this.badge1Label = 'Label',
this.hasBadgeTwo = true,
this.badge2Label = 'Label',
this.hasBadgeThree = true,
this.badge3Label = 'Label',
this.badges,
});