Skip to content

Commit

Permalink
updates default inactiveOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin committed Jul 31, 2023
1 parent 1f60a1c commit cd8ad70
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/src/widgets/animated_toggle_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
this.separatorBuilder,
this.customSeparatorBuilder,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : _iconArrangement = IconArrangement.row,
Expand Down Expand Up @@ -361,7 +361,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
this.separatorBuilder,
this.customSeparatorBuilder,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : animatedIconBuilder = _iconSizeBuilder<T>(
Expand Down Expand Up @@ -418,7 +418,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
this.separatorBuilder,
this.customSeparatorBuilder,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : indicatorSize = indicatorSize * (height - 2 * borderWidth),
Expand Down Expand Up @@ -505,7 +505,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
this.separatorBuilder,
this.customSeparatorBuilder,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : dif = dif * (height - 2 * borderWidth),
Expand Down Expand Up @@ -565,7 +565,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
this.separatorBuilder,
this.customSeparatorBuilder,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : iconAnimationCurve = Curves.linear,
Expand Down Expand Up @@ -638,7 +638,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
this.separatorBuilder,
this.customSeparatorBuilder,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : iconAnimationCurve = Curves.linear,
Expand Down Expand Up @@ -785,7 +785,7 @@ class AnimatedToggleSwitch<T> extends StatelessWidget {
ForegroundIndicatorTransitionType transitionType =
ForegroundIndicatorTransitionType.rolling,
this.active = true,
this.inactiveOpacity = 0.5,
this.inactiveOpacity = 0.6,
this.inactiveOpacityCurve = Curves.easeInOut,
this.inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : assert(clipAnimation || opacityAnimation),
Expand Down

0 comments on commit cd8ad70

Please sign in to comment.