animated_toggle_switch library

Classes

AnimatedToggleProperties<T>
AnimatedToggleSwitch<T extends Object?>
A class with constructors for different switches. The constructors have sensible default values for their parameters, but can also be customized.
CustomAnimatedToggleSwitch<T extends Object?>
With this widget you can implement your own switches with nice animations.
DetailedGlobalToggleProperties<T>
ForegroundIndicatorTransition
Different types of transitions for the foreground indicator.
GlobalToggleProperties<T>
LocalToggleProperties<T>
PositionListenerInfo<T>
RollingProperties<T>
SeparatorProperties<T>
StyledToggleProperties<T>
TapInfo<T>
TapProperties<T>
ToggleCursors
TogglePosition<T>
ToggleStyle
ToggleStyleProperty<T>
ValueHolder<T>

Enums

AnimationType
Specifies when an value should be animated.
FittingMode
IconArrangement
ToggleMode

Typedefs

AnimatedIconBuilder<T> = Widget Function(BuildContext context, AnimatedToggleProperties<T> local, DetailedGlobalToggleProperties<T> global)
A version of IconBuilder for writing a custom animation for the change of the selected item.
ChangeCallback<T> = FutureOr<void> Function(T value)
CustomIconBuilder<T> = Widget Function(BuildContext context, LocalToggleProperties<T> local, DetailedGlobalToggleProperties<T> global)
Custom builder for icons in the switch.
CustomIndicatorBuilder<T> = Widget Function(BuildContext context, DetailedGlobalToggleProperties<T> global)
Custom builder for the indicator of the switch.
CustomSeparatorBuilder<T> = Widget Function(BuildContext context, SeparatorProperties<T> local, DetailedGlobalToggleProperties<T> global)
Custom builder for the spacing section between the icons.
CustomStyleBuilder<T> = ToggleStyle Function(BuildContext context, StyledToggleProperties<T> local, GlobalToggleProperties<T> global)
CustomWrapperBuilder<T> = Widget Function(BuildContext context, GlobalToggleProperties<T> global, Widget child)
Custom builder for the wrapper of the switch.
IconBuilder<T> = Widget Function(BuildContext context, StyledToggleProperties<T> local, DetailedGlobalToggleProperties<T> global)
IndicatorAppearingBuilder = Widget Function(BuildContext context, double value, Widget indicator)
Custom builder for the appearing animation of the indicator.
LoadingIconBuilder<T> = Widget Function(BuildContext context, DetailedGlobalToggleProperties<T> global)
PositionListener<T> = void Function(PositionListenerInfo<T> position)
Listener for the current position and ToggleMode of the indicator.
RollingIconBuilder<T> = Widget Function(BuildContext context, RollingProperties<T> local, DetailedGlobalToggleProperties<T> global)
SeparatorBuilder = Widget Function(int index)
SimpleIconBuilder<T> = Widget Function(T value)
SimpleRollingIconBuilder<T> = Widget Function(T value, bool foreground)
StyleBuilder<T> = ToggleStyle Function(T value)
TapCallback<T> = FutureOr<void> Function(TapProperties<T> props)