@@ -12,7 +12,7 @@ import 'package:nylo_framework/nylo_framework.dart';
1212*/
1313
1414// App Themes
15- final List <BaseThemeConfig > appThemes = [
15+ final List <BaseThemeConfig < ColorStyles > > appThemes = [
1616 ThemeConfig .light (),
1717 ThemeConfig .dark (),
1818];
@@ -38,15 +38,15 @@ ColorStyles darkColors = DarkThemeColors();
3838// Preset Themes
3939class ThemeConfig {
4040 // LIGHT
41- static BaseThemeConfig light () => BaseThemeConfig (
41+ static BaseThemeConfig < ColorStyles > light () => BaseThemeConfig < ColorStyles > (
4242 id: "default_light_theme" ,
4343 description: "Light theme" ,
4444 theme: lightTheme (lightColors),
4545 colors: lightColors,
4646 );
4747
4848 // DARK
49- static BaseThemeConfig dark () => BaseThemeConfig (
49+ static BaseThemeConfig < ColorStyles > dark () => BaseThemeConfig < ColorStyles > (
5050 id: "default_dark_theme" ,
5151 description: "Dark theme" ,
5252 theme: darkTheme (darkColors),
@@ -60,10 +60,10 @@ class ThemeConfig {
6060
6161// First add the colors which was created into the above section like the following:
6262// Bright Colors
63- /// BaseColorStyles brightColors = BrightThemeColors();
63+ /// ColorStyles brightColors = BrightThemeColors();
6464
6565// Next, uncomment the below:
66- /// static BaseThemeConfig bright() => BaseThemeConfig(
66+ /// static BaseThemeConfig<ColorStyles> bright() => BaseThemeConfig<ColorStyles> (
6767 /// id: "default_bright_theme",
6868 /// description: "Bright theme",
6969 /// theme: brightTheme(brightColors),
0 commit comments