BeuiAgentTypography class

Type roles used by agent widgets. Colors are applied by the widget from BeuiColors; these styles carry size, weight, height, and (for mono) family. Sans styles leave TextStyle.fontFamily unset so ThemeData.fontFamily inherits through.

Annotations

Constructors

BeuiAgentTypography({TextStyle assistantBody = const TextStyle(fontSize: 14, height: 24 / 14), TextStyle userBody = const TextStyle(fontSize: 14, height: 24 / 14), TextStyle title = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, height: 20 / 16), TextStyle description = const TextStyle(fontSize: 14, height: 20 / 14), TextStyle metadata = const TextStyle(fontSize: 11, height: 1), TextStyle status = const TextStyle(fontSize: 12), TextStyle action = const TextStyle(fontSize: 12, fontWeight: FontWeight.w500), TextStyle mono = const TextStyle(fontSize: 12, fontFamily: 'monospace', fontFamilyFallback: ['monospace'])})
Creates agent type roles. Defaults match the current source-fidelity sizes (text-sm 14, text-base 16, text-xs 12, text-[11px] 11).
const

Properties

action TextStyle
Button / chip / "show more" labels.
final
assistantBody TextStyle
Assistant / agent message body (text-sm + leading-6).
final
description TextStyle
Supporting copy under a title.
final
hashCode int
The hash code for this object.
no setteroverride
metadata TextStyle
Timestamps, names, tiny chrome (text-[11px]).
final
mono TextStyle
Code, terminal, and other monospaced result content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status TextStyle
Status labels, counters, activity (text-xs).
final
title TextStyle
Card / question titles (text-base + font-medium).
final
userBody TextStyle
User message body (same metrics as assistantBody unless overridden).
final

Methods

copyWith({TextStyle? assistantBody, TextStyle? userBody, TextStyle? title, TextStyle? description, TextStyle? metadata, TextStyle? status, TextStyle? action, TextStyle? mono}) BeuiAgentTypography
Returns a copy with the given roles replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(BeuiAgentTypography a, BeuiAgentTypography b, double t) BeuiAgentTypography
Linearly interpolates two typography contracts.