TKeyValueTheme class

Theme configuration for TKeyValueSection.

TKeyValueTheme controls the appearance of key-value pairs, including:

  • Text styles for keys, labels, and values
  • Grid layout spacing and breakpoints
Implementers

Constructors

TKeyValueTheme({required TextStyle keyStyle, required TextStyle labelStyle, required TextStyle valueStyle, double gridSpacing = 0, double minGridColWidth = 110, bool forceKeyValue = false, double keyValueBreakPoint = 300, bool showLeftBorder = false, Alignment alignment = Alignment.centerLeft, EdgeInsets narrowPadding = const EdgeInsets.symmetric(vertical: 6), double narrowItemBottomSpacing = 10, int narrowKeyFlex = 2, int narrowValueFlex = 3, double narrowGap = 12, EdgeInsets gridCellPadding = const EdgeInsets.symmetric(horizontal: 6, vertical: 6), double gridCellGap = 4, double maxColWidthFraction = 0.7, double minFractionFixed = 1.0, double minFractionStructured = 0.9, double minFractionCompact = 0.80, double minFractionProse = 0.70, double additionalNaturalWidth = 1.0, int maxItemsPerRow = 12})
Creates a key-value theme.
const
TKeyValueTheme.defaultTheme(ColorScheme colors)
factory

Properties

additionalNaturalWidth double
Extra width added to the calculated natural width of each child.
final
alignment Alignment
Default alignment for key-value content.
final
forceKeyValue bool
Whether to force the key-value (narrow) layout regardless of screen width.
final
gridCellGap double
Vertical spacing between the label and value within a grid cell.
final
gridCellPadding EdgeInsets
Padding surrounding each individual cell in grid layout.
final
gridSpacing double
Spacing between cells in grid layout.
final
hashCode int
The hash code for this object.
no setterinherited
keyStyle TextStyle
The style for keys/labels in key-value (narrow) layout.
final
keyValueBreakPoint double
The screen width threshold under which the key-value layout is used.
final
labelStyle TextStyle
The style for keys/labels in grid (wide) layout.
final
maxColWidthFraction double
The maximum fraction of total layout width a single column can consume.
final
maxItemsPerRow int
The maximum number of items allowed per row in grid layout.
final
minFractionCompact double
Minimum fraction of natural width tolerated by compact content priority.
final
minFractionFixed double
Minimum fraction of natural width tolerated by fixed content priority.
final
minFractionProse double
Minimum fraction of natural width tolerated by prose content priority.
final
minFractionStructured double
Minimum fraction of natural width tolerated by structured content priority.
final
minGridColWidth double
The minimum allowed width for columns in grid layout.
final
narrowGap double
Horizontal gap between the key and value columns in narrow key-value layout.
final
narrowItemBottomSpacing double
Vertical spacing between items in narrow key-value layout.
final
narrowKeyFlex int
Flex factor for the key column in narrow key-value layout.
final
narrowPadding EdgeInsets
Overall padding surrounding the narrow key-value layout container.
final
narrowValueFlex int
Flex factor for the value column in narrow key-value layout.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLeftBorder bool
Whether to show a left vertical border/separator on grid cells.
final
valueStyle TextStyle
The style for text values.
final

Methods

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