softTextTheme static method

TWidgetTheme softTextTheme(
  1. Color color, [
  2. bool isDarkMode = false
])

Implementation

static TWidgetTheme softTextTheme(Color color, [bool isDarkMode = false]) {
  final m = color.toMaterial();
  return TWidgetTheme(
    isDarkMode: isDarkMode,
    type: TVariant.softText,
    color: m,
    container: Colors.transparent,
    containerVariant: isDarkMode ? m.shade(800).withAlpha(200) : m.shade(50),
    onContainer: m.shade(400),
    onContainerVariant: isDarkMode ? m.shade(100) : m.shade(400),
  );
}