@@ -31,8 +31,13 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
3131
3232 /// The indicator background color
3333 final Color ? backgroundColor;
34-
35- /// The indicator elevation
34+
35+ /// The z-coordinate at which to place this material relative to its parent.
36+ ///
37+ /// This controls the size of the shadow below the material and
38+ /// the opacity of the elevation overlay color if it is applied.
39+ ///
40+ /// Defaults to `2.0` .
3641 final double elevation;
3742
3843 /// Builds the content for the indicator container
@@ -41,9 +46,15 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
4146 /// Builds the scrollable.
4247 final IndicatorBuilder scrollableBuilder;
4348
44- /// When set to *true*, the indicator will rotate in the [IndicatorState.loading] state.
49+ /// When set to *true*, the indicator will rotate
50+ /// in the [IndicatorState.loading] state.
4551 final bool withRotation;
4652
53+ /// The content will be clipped (or not) according to this option.
54+ ///
55+ /// Defaults to [Clip.none] .
56+ final Clip clipBehavior;
57+
4758 const MaterialIndicatorDelegate ({
4859 required this .builder,
4960 this .scrollableBuilder = _defaultBuilder,
@@ -52,6 +63,7 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
5263 this .edgeOffset = 0.0 ,
5364 this .withRotation = true ,
5465 this .elevation = 2.0 ,
66+ this .clipBehavior = Clip .none,
5567 });
5668
5769 static Widget _defaultBuilder (
@@ -88,6 +100,7 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
88100 margin: const EdgeInsets .all (4.0 ),
89101 child: Material (
90102 type: MaterialType .circle,
103+ clipBehavior: clipBehavior,
91104 color: backgroundColor,
92105 elevation: elevation,
93106 child: _InfiniteRotation (
0 commit comments