BiographyBlock class

A responsive biography and entity marker card for the Alter Design System.

Figma Specifications (Node 761:7097 - BiographyBlock):

Inheritance

Constructors

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, 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.
const
BiographyBlock.wide({Key? key, 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, 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})
Convenience constructor for a wide-layout BiographyBlock.
const

Properties

badge1Label → String
Label string for badge 1.
final
badge2Label → String
Label string for badge 2.
final
badge3Label → String
Label string for badge 3.
final
badges → List<Widget>?
Custom list of badge widgets (overrides default badges if provided).
final
description → String
Bio / description body text.
final
descriptionWidget → Widget?
Custom widget override for description.
final
device → BiographyBlockDevice
Viewport mode (auto responsive, web, or mobile).
final
hasBadgeBar → bool
Whether the badge bar is displayed.
final
hasBadgeOne → bool
Whether badge 1 is displayed.
final
hasBadgeThree → bool
Whether badge 3 is displayed.
final
hasBadgeTwo → bool
Whether badge 2 is displayed.
final
hasDescription → bool
Whether the bio / description section is displayed.
final
hashCode → int
The hash code for this object.
no setterinherited
Whether the entity logo container is displayed.
final
hasSubtitle → bool
Whether subtitle is displayed.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
Image provider for the entity logo.
final
logoAssetPath → String?
Custom asset path for the logo (defaults to 'assets/alter_logo.png').
final
logoWidget → Widget?
Custom widget override for the logo.
final
onLogoTap → VoidCallback?
Callback executed when the logo is tapped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtitle → String
Subtitle descriptive text.
final
subtitleWidget → Widget?
Custom widget override for subtitle.
final
title → String
Main entity title text.
final
titleWidget → Widget?
Custom widget override for title.
final
type → BiographyBlockType
Variant layout type (tall or wide).
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

version → const String
Component version for reference. v1.1.0: Renamed from BioMarker to BiographyBlock matching Figma node 761:7097, moved to lib/web/. v1.0.1: Added ambient AlterDeviceScope inheritance so BioMarker derives device mode directly from parent marker/grid rather than judging its own narrow cell width. v1.0.0: Initial release matching Figma Node 761:7097 (BiographyBlock: Tall/Wide, Web/Mobile responsive).