TKeyValueTheme constructor

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

Creates a key-value theme.

Implementation

const TKeyValueTheme({
  this.mode,
  required this.keyStyle,
  required this.labelStyle,
  required this.valueStyle,
  this.minGridColWidth = 110,
  this.forceKeyValue = false,
  this.keyValueBreakPoint = 300,
  required this.borderColor,
  this.showLeftBorder = false,
  this.alignment = Alignment.topLeft,
  this.narrowPadding = EdgeInsets.zero,
  this.narrowItemBottomSpacing = 10,
  this.narrowKeyFlex = 2,
  this.narrowValueFlex = 3,
  this.narrowGap = 12,
  this.gridCellPadding = EdgeInsets.zero,
  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.inlineKeyAlignment = Alignment.topLeft,
  this.removeEmpty = true,
  this.selectable = false,
  double? hSpacing,
  double? vSpacing,
  double? gap,
})  : _hSpacing = hSpacing,
      _vSpacing = vSpacing,
      _gap = gap;