templateTable function
Logical column order. The table already reverses columns in RTL.
Implementation
Widget templateTable(
TemplateTheme theme, {
required List<String> headers,
required List<List<String>> rows,
}) {
return Table.fromTextArray(
headers: headers,
data: rows,
headerStyle: TextStyle(
fontSize: 8,
fontWeight: FontWeight.bold,
color: theme.onAccent,
),
cellStyle: TextStyle(fontSize: 9, color: theme.ink),
headerDecoration: theme.accent,
oddRowDecoration: theme.wash,
tableBorder: TableBorder.all(color: theme.line, width: 0.4),
cellPadding: const EdgeInsets.symmetric(horizontal: 6, vertical: 5),
);
}