@@ -12,7 +12,7 @@ import 'package:nylo_framework/nylo_framework.dart';
12
12
*/
13
13
14
14
// App Themes
15
- final List <BaseThemeConfig > appThemes = [
15
+ final List <BaseThemeConfig < ColorStyles > > appThemes = [
16
16
ThemeConfig .light (),
17
17
ThemeConfig .dark (),
18
18
];
@@ -38,15 +38,15 @@ ColorStyles darkColors = DarkThemeColors();
38
38
// Preset Themes
39
39
class ThemeConfig {
40
40
// LIGHT
41
- static BaseThemeConfig light () => BaseThemeConfig (
41
+ static BaseThemeConfig < ColorStyles > light () => BaseThemeConfig < ColorStyles > (
42
42
id: "default_light_theme" ,
43
43
description: "Light theme" ,
44
44
theme: lightTheme (lightColors),
45
45
colors: lightColors,
46
46
);
47
47
48
48
// DARK
49
- static BaseThemeConfig dark () => BaseThemeConfig (
49
+ static BaseThemeConfig < ColorStyles > dark () => BaseThemeConfig < ColorStyles > (
50
50
id: "default_dark_theme" ,
51
51
description: "Dark theme" ,
52
52
theme: darkTheme (darkColors),
@@ -60,10 +60,10 @@ class ThemeConfig {
60
60
61
61
// First add the colors which was created into the above section like the following:
62
62
// Bright Colors
63
- /// BaseColorStyles brightColors = BrightThemeColors();
63
+ /// ColorStyles brightColors = BrightThemeColors();
64
64
65
65
// Next, uncomment the below:
66
- /// static BaseThemeConfig bright() => BaseThemeConfig(
66
+ /// static BaseThemeConfig<ColorStyles> bright() => BaseThemeConfig<ColorStyles> (
67
67
/// id: "default_bright_theme",
68
68
/// description: "Bright theme",
69
69
/// theme: brightTheme(brightColors),
0 commit comments