dataTableThemeData static method

DataTableThemeData dataTableThemeData(
  1. TextTheme textTheme
)

Implementation

static DataTableThemeData dataTableThemeData(TextTheme textTheme) {
  return DataTableThemeData(
    columnSpacing: 16, // Material default is __56__
    dataTextStyle: textTheme.bodyLarge!.copyWith(
      fontFeatures: [
        const FontFeature.tabularFigures(),
        const FontFeature.slashedZero(),
      ],
    ),
    horizontalMargin: 8,
    dividerThickness: 2.0,
    headingTextStyle: textTheme.headlineMedium,
    headingRowColor: WidgetStateProperty.all(Colors.transparent),
    dataRowMinHeight: touchSize,
    dataRowMaxHeight: double.infinity,
    headingRowHeight:
        (textTheme.headlineMedium!.fontSize! *
            (textTheme.headlineMedium!.height ?? 1.0)) +
        8 /* 4 dp vertical adding */,
  );
}