RenderConfig class TUI

Rendering configuration for display-only UI building blocks.

Bubble models render plain strings from view(). These components follow the same convention by rendering to strings and letting the caller decide how to print them (or compose them into a parent model's view).

In addition to interactive models, Artisanal provides DisplayComponents. These are simple string renderers that don't handle input but provide consistent styling for tables, lists, and panels.

Use RenderConfig to adapt these components to the current terminal width and color capabilities.

Constructors

RenderConfig({int terminalWidth = 80, ColorProfile colorProfile = ColorProfile.trueColor, bool hasDarkBackground = true})
const
RenderConfig.fromRenderer(Renderer renderer, {int terminalWidth = 80})
factory

Properties

colorProfile ColorProfile
final
hasDarkBackground bool
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminalWidth int
final

Methods

configureStyle(Style style) Style
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.
inherited