@@ -8,6 +8,7 @@ import 'package:appflowy_ui/src/theme/color_scheme/icon/icon_color_theme.dart';
88import 'package:appflowy_ui/src/theme/color_scheme/surface/surface_color_scheme.dart' ;
99import 'package:appflowy_ui/src/theme/color_scheme/text/text_color_scheme.dart' ;
1010import 'package:appflowy_ui/src/theme/data/builder.dart' ;
11+ import 'package:appflowy_ui/src/theme/shadow/shadow.dart' ;
1112import 'package:appflowy_ui/src/theme/spacing/spacing.dart' ;
1213import 'package:appflowy_ui/src/theme/text_style/text_style.dart' ;
1314import 'package:flutter/material.dart' ;
@@ -35,6 +36,8 @@ abstract class AppFlowyBaseTheme {
3536
3637 AppFlowySpacing get spacing;
3738
39+ AppFlowyShadow get shadow;
40+
3841 AppFlowyBrandColorScheme get brandColorScheme;
3942}
4043
@@ -70,6 +73,7 @@ class AppFlowyThemeData extends AppFlowyBaseTheme {
7073 final brandColorScheme = themeBuilder.buildBrandColorScheme (colorScheme);
7174 final borderRadius = themeBuilder.buildBorderRadius (colorScheme);
7275 final spacing = themeBuilder.buildSpacing (colorScheme);
76+ final shadow = themeBuilder.buildShadow (Brightness .light);
7377
7478 return AppFlowyThemeData (
7579 colorScheme: colorScheme,
@@ -82,6 +86,7 @@ class AppFlowyThemeData extends AppFlowyBaseTheme {
8286 surfaceColorScheme: surfaceColorScheme,
8387 borderRadius: borderRadius,
8488 spacing: spacing,
89+ shadow: shadow,
8590 brandColorScheme: brandColorScheme,
8691 );
8792 }
@@ -116,6 +121,7 @@ class AppFlowyThemeData extends AppFlowyBaseTheme {
116121 final brandColorScheme = themeBuilder.buildBrandColorScheme (colorScheme);
117122 final borderRadius = themeBuilder.buildBorderRadius (colorScheme);
118123 final spacing = themeBuilder.buildSpacing (colorScheme);
124+ final shadow = themeBuilder.buildShadow (Brightness .dark);
119125
120126 return AppFlowyThemeData (
121127 colorScheme: colorScheme,
@@ -128,6 +134,7 @@ class AppFlowyThemeData extends AppFlowyBaseTheme {
128134 surfaceColorScheme: surfaceColorScheme,
129135 borderRadius: borderRadius,
130136 spacing: spacing,
137+ shadow: shadow,
131138 brandColorScheme: brandColorScheme,
132139 );
133140 }
@@ -141,6 +148,7 @@ class AppFlowyThemeData extends AppFlowyBaseTheme {
141148 required this .surfaceColorScheme,
142149 required this .borderRadius,
143150 required this .spacing,
151+ required this .shadow,
144152 required this .brandColorScheme,
145153 required this .iconColorTheme,
146154 required this .backgroundColorScheme,
@@ -175,6 +183,9 @@ class AppFlowyThemeData extends AppFlowyBaseTheme {
175183 @override
176184 final AppFlowySpacing spacing;
177185
186+ @override
187+ final AppFlowyShadow shadow;
188+
178189 @override
179190 final AppFlowyBrandColorScheme brandColorScheme;
180191
0 commit comments