File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
31
31
32
32
/// The indicator background color
33
33
final Color ? backgroundColor;
34
+
35
+ /// The indicator elevation
36
+ final double elevation;
34
37
35
38
/// Builds the content for the indicator container
36
39
final MaterialIndicatorBuilder builder;
@@ -48,6 +51,7 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
48
51
this .displacement = 40.0 ,
49
52
this .edgeOffset = 0.0 ,
50
53
this .withRotation = true ,
54
+ this .elevation = 2.0 ,
51
55
});
52
56
53
57
static Widget _defaultBuilder (
@@ -85,7 +89,7 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
85
89
child: Material (
86
90
type: MaterialType .circle,
87
91
color: backgroundColor,
88
- elevation: 2.0 ,
92
+ elevation: elevation ,
89
93
child: _InfiniteRotation (
90
94
running: withRotation && controller.isLoading,
91
95
child: builder (context, controller),
You can’t perform that action at this time.
0 commit comments