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. bool showLeftBorder = false,
  10. Alignment alignment = Alignment.centerLeft,
  11. EdgeInsets narrowPadding = const EdgeInsets.symmetric(vertical: 6),
  12. double narrowItemBottomSpacing = 10,
  13. int narrowKeyFlex = 2,
  14. int narrowValueFlex = 3,
  15. double narrowGap = 12,
  16. EdgeInsets gridCellPadding = const EdgeInsets.symmetric(horizontal: 6, vertical: 6),
  17. double gridCellGap = 0,
  18. double maxColWidthFraction = 0.7,
  19. double minFractionFixed = 1.0,
  20. double minFractionStructured = 0.9,
  21. double minFractionCompact = 0.80,
  22. double minFractionProse = 0.70,
  23. double additionalNaturalWidth = 15,
  24. int maxItemsPerRow = 12,
  25. bool gridInline = false,
})

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,
  this.showLeftBorder = false,
  this.alignment = Alignment.centerLeft,
  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 = 0,
  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,
});