TKeyValueTheme constructor

const TKeyValueTheme({
  1. required TextStyle keyStyle,
  2. required TextStyle labelStyle,
  3. required TextStyle valueStyle,
  4. double gridHorizontalSpacing = 0,
  5. double gridVerticalSpacing = 8,
  6. double minGridColWidth = 110,
  7. bool forceKeyValue = false,
  8. double keyValueBreakPoint = 300,
  9. required Color borderColor,
  10. bool showLeftBorder = false,
  11. Alignment alignment = Alignment.topLeft,
  12. EdgeInsets narrowPadding = const EdgeInsets.symmetric(vertical: 6),
  13. double narrowItemBottomSpacing = 10,
  14. int narrowKeyFlex = 2,
  15. int narrowValueFlex = 3,
  16. double narrowGap = 12,
  17. EdgeInsets gridCellPadding = const EdgeInsets.symmetric(horizontal: 6, vertical: 6),
  18. double gridCellGap = 4,
  19. double maxColWidthFraction = 0.7,
  20. double minFractionFixed = 1.0,
  21. double minFractionStructured = 0.9,
  22. double minFractionCompact = 0.80,
  23. double minFractionProse = 0.70,
  24. double additionalNaturalWidth = 15,
  25. int maxItemsPerRow = 12,
  26. bool gridInline = false,
  27. bool columnar = false,
  28. int? columns,
  29. double? inlineKeyWidth,
  30. double? inlineKeyMaxWidth,
  31. double inlineKeyGap = 8,
  32. Alignment? inlineKeyAlignment = Alignment.topLeft,
})

Creates a key-value theme.

Implementation

const TKeyValueTheme({
  required this.keyStyle,
  required this.labelStyle,
  required this.valueStyle,
  this.gridHorizontalSpacing = 0,
  this.gridVerticalSpacing = 8,
  this.minGridColWidth = 110,
  this.forceKeyValue = false,
  this.keyValueBreakPoint = 300,
  required this.borderColor,
  this.showLeftBorder = false,
  this.alignment = Alignment.topLeft,
  this.narrowPadding = const EdgeInsets.symmetric(vertical: 6),
  this.narrowItemBottomSpacing = 10,
  this.narrowKeyFlex = 2,
  this.narrowValueFlex = 3,
  this.narrowGap = 12,
  this.gridCellPadding = const EdgeInsets.symmetric(horizontal: 6, vertical: 6),
  this.gridCellGap = 4,
  this.maxColWidthFraction = 0.7,
  this.minFractionFixed = 1.0,
  this.minFractionStructured = 0.9,
  this.minFractionCompact = 0.80,
  this.minFractionProse = 0.70,
  this.additionalNaturalWidth = 15,
  this.maxItemsPerRow = 12,
  this.gridInline = false,
  this.columnar = false,
  this.columns,
  this.inlineKeyWidth,
  this.inlineKeyMaxWidth,
  this.inlineKeyGap = 8,
  this.inlineKeyAlignment = Alignment.topLeft,
});