Table.fromTextArray constructor

  1. @Deprecated('Use TableHelper.fromTextArray() instead.')
Table.fromTextArray({
  1. Context? context,
  2. required List<List> data,
  3. EdgeInsets cellPadding = const EdgeInsets.all(5),
  4. double cellHeight = 0,
  5. Alignment cellAlignment = Alignment.topLeft,
  6. Map<int, Alignment>? cellAlignments,
  7. TextStyle? cellStyle,
  8. TextStyle? oddCellStyle,
  9. OnCellFormat? cellFormat,
  10. OnCellDecoration? cellDecoration,
  11. int headerCount = 1,
  12. List? headers,
  13. EdgeInsets? headerPadding,
  14. double? headerHeight,
  15. Alignment headerAlignment = Alignment.center,
  16. Map<int, Alignment>? headerAlignments,
  17. TextStyle? headerStyle,
  18. OnCellFormat? headerFormat,
  19. TableBorder? border = const TableBorder(left: BorderSide(), right: BorderSide(), top: BorderSide(), bottom: BorderSide(), horizontalInside: BorderSide(), verticalInside: BorderSide()),
  20. Map<int, TableColumnWidth>? columnWidths,
  21. TableColumnWidth defaultColumnWidth = const IntrinsicColumnWidth(),
  22. TableWidth tableWidth = TableWidth.max,
  23. BoxDecoration? headerDecoration,
  24. BoxDecoration? headerCellDecoration,
  25. BoxDecoration? rowDecoration,
  26. BoxDecoration? oddRowDecoration,
})

Implementation

@Deprecated('Use TableHelper.fromTextArray() instead.')
factory Table.fromTextArray({
  Context? context,
  required List<List<dynamic>> data,
  EdgeInsets cellPadding = const EdgeInsets.all(5),
  double cellHeight = 0,
  Alignment cellAlignment = Alignment.topLeft,
  Map<int, Alignment>? cellAlignments,
  TextStyle? cellStyle,
  TextStyle? oddCellStyle,
  OnCellFormat? cellFormat,
  OnCellDecoration? cellDecoration,
  int headerCount = 1,
  List<dynamic>? headers,
  EdgeInsets? headerPadding,
  double? headerHeight,
  Alignment headerAlignment = Alignment.center,
  Map<int, Alignment>? headerAlignments,
  TextStyle? headerStyle,
  OnCellFormat? headerFormat,
  TableBorder? border = const TableBorder(
    left: BorderSide(),
    right: BorderSide(),
    top: BorderSide(),
    bottom: BorderSide(),
    horizontalInside: BorderSide(),
    verticalInside: BorderSide(),
  ),
  Map<int, TableColumnWidth>? columnWidths,
  TableColumnWidth defaultColumnWidth = const IntrinsicColumnWidth(),
  TableWidth tableWidth = TableWidth.max,
  BoxDecoration? headerDecoration,
  BoxDecoration? headerCellDecoration,
  BoxDecoration? rowDecoration,
  BoxDecoration? oddRowDecoration,
}) =>
    TableHelper.fromTextArray(
      context: context,
      data: data,
      cellPadding: cellPadding,
      cellHeight: cellHeight,
      cellAlignment: cellAlignment,
      cellAlignments: cellAlignments,
      cellStyle: cellStyle,
      oddCellStyle: oddCellStyle,
      cellFormat: cellFormat,
      cellDecoration: cellDecoration,
      headerCount: headerCount = 1,
      headers: headers,
      headerPadding: headerPadding,
      headerHeight: headerHeight,
      headerAlignment: headerAlignment,
      headerAlignments: headerAlignments,
      headerStyle: headerStyle,
      headerFormat: headerFormat,
      border: border,
      columnWidths: columnWidths,
      defaultColumnWidth: defaultColumnWidth,
      tableWidth: tableWidth,
      headerDecoration: headerDecoration,
      headerCellDecoration: headerCellDecoration,
      rowDecoration: rowDecoration,
      oddRowDecoration: oddRowDecoration,
    );