ApplicationHeaderButtonText class

A 48px height text badge / button for application headers.

Figma Specifications (Node 760:3612 - .ApplicationHeaderButtonText):

  • Layout: 48px height, 12px horizontal padding, centered text.
  • Typography: Body/body-bold -> AlterTypography.bodyBold (Geist 14px, SemiBold 600, 16px line-height).
  • States:
    • state=Default: Background transparent, text textPrimary (#000000).
    • state=Hover: Background baseActive (#E5E7EB), text textPrimary (#000000).
    • state=Selected: Background baseActive (#E5E7EB), text textPrimary (#000000).
Inheritance

Constructors

ApplicationHeaderButtonText({Key? key, String label = 'Label', bool? isHovered, bool isSelected = false, double height = 48.0, BorderRadius? borderRadius, VoidCallback? onTap})
Creates an ApplicationHeaderButtonText instance.
const

Properties

borderRadius → BorderRadius?
Corner radius of the button background.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Height of the button container (Figma default: 48px).
final
isHovered → bool?
Explicit hover state override.
final
isSelected → bool
Whether the button is in the selected active state.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
Text label string.
final
onTap → VoidCallback?
Callback executed when the button is tapped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<ApplicationHeaderButtonText>
Creates the mutable state for this widget at a given location in the tree.
override
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.0.1: Removed default 12px corner radius (default to sharp/zero radius) strictly matching Figma Node 760:3612. v1.0.0: Initial release matching Figma Node 760:3612 (.ApplicationHeaderButtonText).