animated_toggle_switch
Fully customizable, draggable and animated switch with multiple choices and smooth loading animation. It has prebuilt constructors for rolling and size animations.
0.8.7
64K downloads/mo
#92 most downloaded on pub.dev
splashbyte/animated_toggle_switch
What this package is like to depend on
Last release 7 months ago
09 Jan 2026
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 26 of 26 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
37 releases · first in 2021
2 releases in the last 12 months
see the full history below
Release timeline
37 releases · Mar 2021 to Jan 2026Releases
latest 37-
0.8.709 Jan 2026 -
0.8.609 Jan 2026 -
0.8.528 Apr 2025 -
0.8.418 Dec 2024Release notes
Open source →- adds option to add
ToggleStyletoThemeDataasThemeExtension - removes usage of deprecated members
Release notes
Open source →- adds option to add
ToggleStyletoThemeDataasThemeExtension - removes usage of deprecated members
- adds option to add
-
0.8.312 Aug 2024 -
0.8.226 Feb 2024 -
0.8.106 Feb 2024 -
0.8.002 Sep 2023Release notes
Open source →- adds tests for all
AnimatedToggleSwitchconstructors - adds
separatorBuilder,customSeparatorBuilder,styleandstyleAnimationTypetoAnimatedToggleSwitch - adds
separatorBuildertoCustomAnimatedToggleSwitch - adds
activeto all constructors (#30) - adds
styleBuilderandstyleListtoAnimatedToggleSwitch - adds
iconListtoAnimatedToggleSwitch.size,AnimatedToggleSwitch.sizeByHeight,AnimatedToggleSwitch.rollingandAnimatedToggleSwitch.rollingByHeight - BREAKING: moves many parameters in
AnimatedToggleSwitchtostyle:innerColor(renamed tobackgroundColor)innerGradient(renamed tobackgroundGradient)borderColorindicatorColorborderRadiusindicatorBorderColorindicatorBorderindicatorBorderforegroundBoxShadow(renamed toindicatorBoxShadow)boxShadow
- BREAKING: moves all cursor parameters to
cursors - BREAKING: removes
borderColorBuilderin favor of the newstyleBuilder - BREAKING:
indicatorAnimationTypehandlesToggleStyle.indicatorColor,ToggleStyle.indicatorBorderRadius,ToggleStyle.indicatorBorderandToggleStyle.indicatorBoxShadownow - BREAKING: adds parameter to
onTap(#41) - BREAKING: changes default background color from
ThemeData.scaffoldBackgroundColortoThemeData.colorScheme.surface - BREAKING: renames
diftospacingin all constructors - BREAKING: replaces
transitionTypewithindicatorTransitioninAnimatedToggleSwitch.rolling(),
AnimatedToggleSwitch.rollingByHeight()andAnimatedToggleSwitch.dual() - BREAKING: removes
iconSizeandselectedIconSizeinAnimatedToggleSwitchconstructorsrolling(),rollingByHeight(),dual(): new parameterindicatorIconScalecontrols scaling nowsize(),sizeByHeight(): new parameterselectedIconScalecontrols scaling now
Release notes
Open source →- adds tests for all
AnimatedToggleSwitchconstructors - adds
separatorBuilder,customSeparatorBuilder,styleandstyleAnimationTypetoAnimatedToggleSwitch - adds
separatorBuildertoCustomAnimatedToggleSwitch - adds
activeto all constructors (#30) - adds
styleBuilderandstyleListtoAnimatedToggleSwitch - adds
iconListtoAnimatedToggleSwitch.size,AnimatedToggleSwitch.sizeByHeight,AnimatedToggleSwitch.rollingandAnimatedToggleSwitch.rollingByHeight - BREAKING: moves many parameters in
AnimatedToggleSwitchtostyle:innerColor(renamed tobackgroundColor)innerGradient(renamed tobackgroundGradient)borderColorindicatorColorborderRadiusindicatorBorderColorindicatorBorderindicatorBorderforegroundBoxShadow(renamed toindicatorBoxShadow)boxShadow
- BREAKING: moves all cursor parameters to
cursors - BREAKING: removes
borderColorBuilderin favor of the newstyleBuilder - BREAKING:
indicatorAnimationTypehandlesToggleStyle.indicatorColor,ToggleStyle.indicatorBorderRadius,ToggleStyle.indicatorBorderandToggleStyle.indicatorBoxShadownow - BREAKING: adds parameter to
onTap(#41) - BREAKING: changes default background color from
ThemeData.scaffoldBackgroundColortoThemeData.colorScheme.surface - BREAKING: renames
diftospacingin all constructors - BREAKING: replaces
transitionTypewithindicatorTransitioninAnimatedToggleSwitch.rolling(),AnimatedToggleSwitch.rollingByHeight()andAnimatedToggleSwitch.dual() - BREAKING: removes
iconSizeandselectedIconSizeinAnimatedToggleSwitchconstructorsrolling(),rollingByHeight(),dual(): new parameterindicatorIconScalecontrols scaling nowsize(),sizeByHeight(): new parameterselectedIconScalecontrols scaling now
- adds tests for all
-
0.8.0-beta.622 Aug 2023 pre-release -
0.8.0-beta.518 Aug 2023 pre-release -
0.8.0-beta.418 Aug 2023 pre-releaseNothing published for this version
-
0.8.0-beta.311 Aug 2023 pre-releaseNothing published for this version
-
0.8.0-beta.201 Aug 2023 pre-releaseNothing published for this version
-
0.8.0-beta.131 Jul 2023 pre-releaseNothing published for this version
-
0.8.0-beta.029 Jul 2023 pre-releaseNothing published for this version
-
0.7.019 Jun 2023Release notes
Open source →- adds possibility that no valid value is selected (by setting
allowUnlistedValuestotrue) - adds new parameters to almost all constructors:
allowUnlistedValues,indicatorAppearingBuilder,indicatorAppearingDuration,indicatorAppearingCurve
- adds possibility that no valid value is selected (by setting
-
0.6.209 Mar 2023 -
0.6.122 Dec 2022 -
0.6.022 Dec 2022Release notes
Open source →- fixes README
- fixes (#28)
- BREAKING: increases minimum SDK to 2.17
- BREAKING: renames
valuetocurrentandpreviousValuetopreviousinDetailedGlobalToggleProperties - BREAKING feature: Adds loading animation to all switches. You can disable it by setting
loadingto false. - adds
innerGradienttoAnimatedToggleSwitch - adds
transitionTypetoAnimatedToggleSwitch.rolling,AnimatedToggleSwitch.rollingByHeightandAnimatedToggleSwitch.dual
-
0.5.222 Apr 2022Release notes
Open source →- minor performance improvement
- minor fixes
- improves code documentation
- adds
dragCursoranddraggingCursortoCustomAnimatedToggleSwitch - adds
iconsTappable,defaultCursor,dragCursoranddraggingCursortoAnimatedToggleSwitch
-
0.5.121 Apr 2022 -
0.5.020 Apr 2022Release notes
Open source →- minor performance improvement
- fixes problems with tight constraints
- BREAKING: changes default values of
animationOffsetandclipAnimationinAnimatedToggleSwitch.dual
-
0.4.003 Apr 2022Release notes
Open source →- minor fixes and performance improvements
- adds
indicatorBorderRadiustoAnimatedToggleSwitch - adds
animationOffset,clipAnimationandopacityAnimationtoAnimatedToggleSwitch.dual - BREAKING: sets default values of
animationOffset,clipAnimationandopacityAnimationinAnimatedToggleSwitch.dual - BREAKING: renames
foregroundBordertoindicatorBorder
-
0.3.123 Mar 2022 -
0.3.021 Mar 2022Release notes
Open source →- introduces
CustomAnimatedToggleSwitchfor maximum customizability - most constructors of
AnimatedToggleSwitchhave a standard and a more customizable parameter for their builders now - full support of
TextDirection.rtl - adds animation when dragging the switch
- adds
minTouchTargetSize,dragStartDuration,dragStartCurveandtextDirectiontoAnimatedToggleSwitch - BREAKING:
TextDirectionis taken fromBuildContextby default now!!! - BREAKING: changes parameters and names of some builders
- BREAKING: renames
AnimatedToggleSwitch.byHeighttoAnimatedToggleSwitch.customByHeight - BREAKING: adds default
textMargintoAnimatedToggleSwitch.dual - fixes (#9)
- introduces
-
0.3.0-beta.321 Mar 2022 pre-releaseNothing published for this version
-
0.3.0-beta.221 Mar 2022 pre-releaseNothing published for this version
-
0.3.0-beta.121 Mar 2022 pre-releaseNothing published for this version
-
0.3.0-beta.020 Mar 2022 pre-releaseNothing published for this version
-
0.2.328 Feb 2022Release notes
Open source →- BREAKING: removes
indicatorType - BREAKING: changes default
innerColor - adds
BoxShadowparameters
- BREAKING: removes
-
0.2.227 Jan 2022 -
0.2.103 Oct 2021 -
0.2.021 May 2021Release notes
Open source →- minor Changes
- fixes
FittingMode.preventHorizontalOverlapping - improves Web support
-
0.1.327 Mar 2021 -
0.1.227 Mar 2021 -
0.1.126 Mar 2021 -
0.1.026 Mar 2021