TKeyValueSection.columnsInline constructor

TKeyValueSection.columnsInline({
  1. Key? key,
  2. required List<TKeyValue> values,
  3. TKeyValueTheme? theme,
  4. int? columns,
  5. double? keyWidth,
  6. double? keyMaxWidth,
  7. double gap = 16,
  8. Alignment? keyAlignment,
  9. double hSpacing = 24,
  10. double vSpacing = 12,
  11. bool? removeEmpty,
})

Factory constructor for inline multi-column grid layout with vertically aligned key columns.

Implementation

factory TKeyValueSection.columnsInline({
  Key? key,
  required List<TKeyValue> values,
  TKeyValueTheme? theme,
  int? columns,
  double? keyWidth,
  double? keyMaxWidth,
  double gap = 16,
  Alignment? keyAlignment,
  double hSpacing = 24,
  double vSpacing = 12,
  bool? removeEmpty,
}) {
  return TKeyValueSection(
    key: key,
    values: values,
    theme: theme,
    gridInline: true,
    columnar: true,
    columns: columns,
    inlineKeyWidth: keyWidth,
    inlineKeyMaxWidth: keyMaxWidth,
    inlineKeyGap: gap,
    inlineKeyAlignment: keyAlignment,
    gridHorizontalSpacing: hSpacing,
    gridVerticalSpacing: vSpacing,
    removeEmpty: removeEmpty,
  );
}