Table.fromTextArray constructor
- @Deprecated('Use TableHelper.fromTextArray() instead.')
Table.fromTextArray(
{ - Context? context,
- required List<List> 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,
- 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? rowDecoration,
- 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,
);