Skip to content

enable total disabling of Material visibility #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/src/delegates/material_indicator_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {

/// The indicator background color
final Color? backgroundColor;

/// The indicator elevation
final double elevation;

/// Builds the content for the indicator container
final MaterialIndicatorBuilder builder;
Expand All @@ -48,6 +51,7 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
this.displacement = 40.0,
this.edgeOffset = 0.0,
this.withRotation = true,
this.elevation = 2.0,
});

static Widget _defaultBuilder(
Expand Down Expand Up @@ -85,7 +89,7 @@ class MaterialIndicatorDelegate extends IndicatorBuilderDelegate {
child: Material(
type: MaterialType.circle,
color: backgroundColor,
elevation: 2.0,
elevation: elevation,
child: _InfiniteRotation(
running: withRotation && controller.isLoading,
child: builder(context, controller),
Expand Down