File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ class EasyLoading {
165
165
166
166
/// background color of loading, only used for [EasyLoadingStyle.custom] .
167
167
Color ? backgroundColor;
168
+
169
+ /// boxShadow of loading, only used for [EasyLoadingStyle.custom] .
170
+ List <BoxShadow >? boxShadow;
168
171
169
172
/// mask color of loading, only used for [EasyLoadingMaskType.custom] .
170
173
Color ? maskColor;
Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ class EasyLoadingTheme {
53
53
? Colors .black.withOpacity (0.9 )
54
54
: Colors .white;
55
55
56
+ /// boxShadow color of loading
57
+ static List <BoxShadow >? get boxShadow =>
58
+ EasyLoading .instance.loadingStyle == EasyLoadingStyle .custom
59
+ ? EasyLoading .instance.boxShadow!
60
+ : null ;
61
+
56
62
/// font color of status
57
63
static Color get textColor =>
58
64
EasyLoading .instance.loadingStyle == EasyLoadingStyle .custom
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ class _Indicator extends StatelessWidget {
195
195
borderRadius: BorderRadius .circular (
196
196
EasyLoadingTheme .radius,
197
197
),
198
+ boxShadow: EasyLoadingTheme .boxShadow,
198
199
),
199
200
padding: EasyLoadingTheme .contentPadding,
200
201
child: Column (
You can’t perform that action at this time.
0 commit comments