WaveTheme constructor

WaveTheme({
  1. WaveAppBarTheme? appBarTheme,
  2. WaveColorScheme? colorScheme,
  3. WaveTextTheme? textTheme,
})

Implementation

factory WaveTheme({WaveAppBarTheme? appBarTheme, WaveColorScheme? colorScheme, WaveTextTheme? textTheme}) {
  colorScheme ??= WaveColorScheme.light();
  appBarTheme ??= WaveAppBarTheme(
    backgroundColor: colorScheme.contentPrimary,
    foregroundColor: colorScheme.labelPrimary,
    titleStyle: TextStyle(),
  );

  textTheme ??= WaveTextTheme().withColor(colorScheme.labelPrimary);

  return WaveTheme._internal(appBarTheme: appBarTheme, colorScheme: colorScheme, textTheme: textTheme);
}