TTableMobileCardTheme constructor

const TTableMobileCardTheme({
  1. EdgeInsets margin = const EdgeInsets.only(bottom: 4),
  2. EdgeInsets padding = const EdgeInsets.all(6),
  3. double elevation = 0,
  4. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)),
  5. required WidgetStateProperty<Color> backgroundColor,
  6. required WidgetStateProperty<Border> border,
  7. required TextStyle keyStyle,
  8. required TextStyle labelStyle,
  9. required TextStyle valueStyle,
  10. double gridSpacing = 2,
  11. double minGridColWidth = 110,
  12. bool forceKeyValue = false,
  13. double keyValueBreakPoint = 300,
  14. bool showLeftBorder = false,
  15. Alignment alignment = Alignment.centerLeft,
  16. EdgeInsets narrowPadding = const EdgeInsets.symmetric(vertical: 6),
  17. double narrowItemBottomSpacing = 10,
  18. int narrowKeyFlex = 2,
  19. int narrowValueFlex = 3,
  20. double narrowGap = 12,
  21. EdgeInsets gridCellPadding = const EdgeInsets.symmetric(horizontal: 6, vertical: 6),
  22. double gridCellGap = 2,
  23. double maxColWidthFraction = 0.7,
  24. double minFractionFixed = 1.0,
  25. double minFractionStructured = 0.9,
  26. double minFractionCompact = 0.80,
  27. double minFractionProse = 0.70,
  28. double additionalNaturalWidth = 15,
  29. int maxItemsPerRow = 12,
  30. bool gridInline = false,
})

Creates a mobile card theme.

Implementation

const TTableMobileCardTheme({
  this.margin = const EdgeInsets.only(bottom: 4),
  this.padding = const EdgeInsets.all(6),
  this.elevation = 0,
  this.borderRadius = const BorderRadius.all(Radius.circular(12)),
  required this.backgroundColor,
  required this.border,
  required super.keyStyle,
  required super.labelStyle,
  required super.valueStyle,
  super.gridSpacing,
  super.minGridColWidth,
  super.forceKeyValue,
  super.keyValueBreakPoint,
  super.showLeftBorder,
  super.alignment,
  super.narrowPadding,
  super.narrowItemBottomSpacing,
  super.narrowKeyFlex,
  super.narrowValueFlex,
  super.narrowGap,
  super.gridCellPadding,
  super.gridCellGap,
  super.maxColWidthFraction,
  super.minFractionFixed,
  super.minFractionStructured,
  super.minFractionCompact,
  super.minFractionProse,
  super.additionalNaturalWidth,
  super.maxItemsPerRow,
  super.gridInline,
});