BrandBlock class

A responsive social proof brand showcase block for landing pages.

Figma Specifications (Node 761:6543 - BrandBlock):

  • Variants:
    • device=PC (761:6544): Width 896px, Column layout, 12px gap, centered.
    • device=Mobile (761:6552): Width 316px, Column layout, 12px gap, centered.
  • Elements:
    • Text: 14px Geist Regular (Body/body), lineHeight 16px, textSecondary (#4A5565).
    • BrandBar: Wrap row, 12px horizontal and vertical gap, centered.
    • Brand Items: Fixed 64px height, 16px corner radius, hugging width to maintain source aspect ratio.
Inheritance

Constructors

BrandBlock({Key? key, double? width, BrandBlockDevice device = BrandBlockDevice.auto, double breakpoint = 500.0, String title = 'I have architected design systems at', Widget? titleWidget, bool hasTitle = true, double brandHeight = 64.0, BorderRadius? brandRadius, double spacing = 12.0, List<BrandItem>? items})
Creates a BrandBlock instance.
const

Properties

brandHeight → double
Fixed height for each brand tile (defaults to 64.0 per Figma specs).
final
brandRadius → BorderRadius?
Corner radius for brand tiles (defaults to 16.0 per Figma specs).
final
breakpoint → double
Width threshold below which mobile layout is activated (defaults to 500.0).
final
device → BrandBlockDevice
Viewport mode (auto, pc, or mobile).
final
hashCode → int
The hash code for this object.
no setterinherited
hasTitle → bool
Whether the title is displayed (defaults to true).
final
items → List<BrandItem>?
List of brand items to display in the brand bar. If null or empty, renders default design system brand placeholders.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spacing → double
Spacing between brand tiles in the wrap flow (defaults to 12.0).
final
title → String
Header title label (defaults to 'I have architected design systems at').
final
titleWidget → Widget?
Custom widget override for the title.
final
width → double?
Optional fixed width constraint for the block.
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

Static Methods

defaultPlaceholders() → List<BrandItem>
Default placeholder items matching Figma Node 761:6543.

Constants

version → const String
Component version for reference. v1.0.0: Initial release matching Figma Node 761:6543 (BrandBlock: device=PC/Mobile).