TTableRowCardTheme.defaultTheme constructor

TTableRowCardTheme.defaultTheme(
  1. ColorScheme colors
)

Implementation

factory TTableRowCardTheme.defaultTheme(ColorScheme colors) {
  return TTableRowCardTheme(
    backgroundColor:
        WidgetStateProperty.resolveWith((states) => states.contains(WidgetState.selected) ? colors.primaryContainer : colors.surface),
    border: WidgetStateProperty.resolveWith(
      (states) => states.contains(WidgetState.selected) ? Border.all(color: colors.primary, width: 2) : Border.all(color: colors.outline),
    ),
    contentTextStyle: TextStyle(fontSize: 13.6, fontWeight: FontWeight.w300, color: colors.onSurface),
  );
}