WaveTheme constructor
WaveTheme({
- WaveAppBarTheme? appBarTheme,
- WaveColorScheme? colorScheme,
- 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);
}