solidTheme static method

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

Implementation

static TWidgetTheme solidTheme(Color color, [bool isDarkMode = false]) {
  final m = color.toMaterial();
  return TWidgetTheme(
    isDarkMode: isDarkMode,
    type: TVariant.solid,
    color: m,
    container: m.shade(400),
    containerVariant: m.shade(400).withAlpha(200),
    onContainer: m.shade(50),
    onContainerVariant: m.shade(50),
    shadow: m.shade(900).withAlpha(35),
  );
}