TTableMobileCardTheme class

Theme configuration for TTableMobileCard.

TTableMobileCardTheme extends TKeyValueTheme to style the mobile card view of table rows. It adds card-specific properties like:

  • Margins/Padding
  • Elevation
  • Border Radius
  • Background and Border colors (normal/selected)
Inheritance

Constructors

TTableMobileCardTheme({EdgeInsets margin = const EdgeInsets.only(bottom: 4), EdgeInsets padding = const EdgeInsets.all(6), double elevation = 0, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)), required WidgetStateProperty<Color> backgroundColor, required WidgetStateProperty<Border> border, required TextStyle keyStyle, required TextStyle labelStyle, required TextStyle valueStyle, double gridSpacing = 0, double minGridColWidth = 110, bool forceKeyValue = false, double keyValueBreakPoint = 350})
Creates a mobile card theme.
const
TTableMobileCardTheme.defaultTheme(ColorScheme colors)
factory

Properties

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

Methods

copyWith({EdgeInsets? margin, EdgeInsets? padding, double? elevation, BorderRadius? borderRadius, WidgetStateProperty<Color>? backgroundColor, WidgetStateProperty<Border>? border, TextStyle? keyStyle, TextStyle? labelStyle, TextStyle? valueStyle, double? gridSpacing, double? minGridColWidth, bool? forceKeyValue, double? keyValueBreakPoint}) TTableMobileCardTheme
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