PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 37
  1. 0.8.7 09 Jan 2026
    Release notes
    Open source →
    Release notes
    Open source →
  2. 0.8.6 09 Jan 2026
    Release notes
    Open source →
    Release notes
    Open source →
  3. 0.8.5 28 Apr 2025
    Release notes
    • adds padding to AnimatedToggleSwitch (#65)
    Open source →
    Release notes
    • adds padding to AnimatedToggleSwitch (#65)
    Open source →
  4. 0.8.4 18 Dec 2024
    Release notes
    • adds option to add ToggleStyle to ThemeData as ThemeExtension
    • removes usage of deprecated members
    Open source →
    Release notes
    • adds option to add ToggleStyle to ThemeData as ThemeExtension
    • removes usage of deprecated members
    Open source →
  5. 0.8.3 12 Aug 2024
    Release notes
    • adds support for vertical switches (#61)
    Open source →
    Release notes
    • adds support for vertical switches (#61)
    Open source →
  6. 0.8.2 26 Feb 2024
    Release notes
    • adds clipBehavior to AnimatedToggleSwitch (#56)
    Open source →
    Release notes
    • adds clipBehavior to AnimatedToggleSwitch (#56)
    Open source →
  7. 0.8.1 06 Feb 2024
    Release notes
    • adds indicatorGradient to ToggleStyle (#44)
    • fixes problems with backgroundGradient and backgroundColor (#46)
    • adds AnimationType.none
    • introduces positionListener (#50)
    • fixes #51
    Open source →
    Release notes
    • adds indicatorGradient to ToggleStyle (#44)
    • fixes problems with backgroundGradient and backgroundColor (#46)
    • adds AnimationType.none
    • introduces positionListener (#50)
    • fixes #51
    Open source →
  8. 0.8.0 02 Sep 2023
    Release notes
    • adds tests for all AnimatedToggleSwitch constructors
    • adds separatorBuilder, customSeparatorBuilder, style and styleAnimationType to AnimatedToggleSwitch
    • adds separatorBuilder to CustomAnimatedToggleSwitch
    • adds active to all constructors (#30)
    • adds styleBuilder and styleList to AnimatedToggleSwitch
    • adds iconList to AnimatedToggleSwitch.size, AnimatedToggleSwitch.sizeByHeight, AnimatedToggleSwitch.rolling and AnimatedToggleSwitch.rollingByHeight
    • BREAKING: moves many parameters in AnimatedToggleSwitch to style:
      • innerColor (renamed to backgroundColor)
      • innerGradient (renamed to backgroundGradient)
      • borderColor
      • indicatorColor
      • borderRadius
      • indicatorBorderColor
      • indicatorBorder
      • indicatorBorder
      • foregroundBoxShadow (renamed to indicatorBoxShadow)
      • boxShadow
    • BREAKING: moves all cursor parameters to cursors
    • BREAKING: removes borderColorBuilder in favor of the new styleBuilder
    • BREAKING: indicatorAnimationType handles ToggleStyle.indicatorColor, ToggleStyle.indicatorBorderRadius, ToggleStyle.indicatorBorder and ToggleStyle.indicatorBoxShadow now
    • BREAKING: adds parameter to onTap (#41)
    • BREAKING: changes default background color from ThemeData.scaffoldBackgroundColor to ThemeData.colorScheme.surface
    • BREAKING: renames dif to spacing in all constructors
    • BREAKING: replaces transitionType with indicatorTransition in AnimatedToggleSwitch.rolling(),
      AnimatedToggleSwitch.rollingByHeight() and AnimatedToggleSwitch.dual()
    • BREAKING: removes iconSize and selectedIconSize in AnimatedToggleSwitch constructors
      • rolling(), rollingByHeight(), dual(): new parameter indicatorIconScale controls scaling now
      • size(), sizeByHeight(): new parameter selectedIconScale controls scaling now
    Open source →
    Release notes
    • adds tests for all AnimatedToggleSwitch constructors
    • adds separatorBuilder, customSeparatorBuilder, style and styleAnimationType to AnimatedToggleSwitch
    • adds separatorBuilder to CustomAnimatedToggleSwitch
    • adds active to all constructors (#30)
    • adds styleBuilder and styleList to AnimatedToggleSwitch
    • adds iconList to AnimatedToggleSwitch.size, AnimatedToggleSwitch.sizeByHeight, AnimatedToggleSwitch.rolling and AnimatedToggleSwitch.rollingByHeight
    • BREAKING: moves many parameters in AnimatedToggleSwitch to style:
      • innerColor (renamed to backgroundColor)
      • innerGradient (renamed to backgroundGradient)
      • borderColor
      • indicatorColor
      • borderRadius
      • indicatorBorderColor
      • indicatorBorder
      • indicatorBorder
      • foregroundBoxShadow (renamed to indicatorBoxShadow)
      • boxShadow
    • BREAKING: moves all cursor parameters to cursors
    • BREAKING: removes borderColorBuilder in favor of the new styleBuilder
    • BREAKING: indicatorAnimationType handles ToggleStyle.indicatorColor, ToggleStyle.indicatorBorderRadius, ToggleStyle.indicatorBorder and ToggleStyle.indicatorBoxShadow now
    • BREAKING: adds parameter to onTap (#41)
    • BREAKING: changes default background color from ThemeData.scaffoldBackgroundColor to ThemeData.colorScheme.surface
    • BREAKING: renames dif to spacing in all constructors
    • BREAKING: replaces transitionType with indicatorTransition in AnimatedToggleSwitch.rolling(), AnimatedToggleSwitch.rollingByHeight() and AnimatedToggleSwitch.dual()
    • BREAKING: removes iconSize and selectedIconSize in AnimatedToggleSwitch constructors
      • rolling(), rollingByHeight(), dual(): new parameter indicatorIconScale controls scaling now
      • size(), sizeByHeight(): new parameter selectedIconScale controls scaling now
    Open source →
  9. 0.8.0-beta.6 22 Aug 2023 pre-release
    Release notes
    • adds parameter to onTap (#41)
    Open source →
  10. 0.8.0-beta.5 18 Aug 2023 pre-release
    Release notes
    • fixes AnimationType.onHover
    Open source →
  11. 0.8.0-beta.4 18 Aug 2023 pre-release

    Nothing published for this version

  12. 0.8.0-beta.3 11 Aug 2023 pre-release

    Nothing published for this version

  13. 0.8.0-beta.2 01 Aug 2023 pre-release

    Nothing published for this version

  14. 0.8.0-beta.1 31 Jul 2023 pre-release

    Nothing published for this version

  15. 0.8.0-beta.0 29 Jul 2023 pre-release

    Nothing published for this version

  16. 0.7.0 19 Jun 2023
    Release notes
    • adds possibility that no valid value is selected (by setting allowUnlistedValues to true)
    • adds new parameters to almost all constructors: allowUnlistedValues, indicatorAppearingBuilder, indicatorAppearingDuration, indicatorAppearingCurve
    Open source →
  17. 0.6.2 09 Mar 2023
    Release notes
    • adds screenshot to pubspec.yaml
    Open source →
  18. 0.6.1 22 Dec 2022
    Release notes
    • adds examples for loading animation to README
    Open source →
  19. 0.6.0 22 Dec 2022
    Release notes
    • fixes README
    • fixes (#28)
    • BREAKING: increases minimum SDK to 2.17
    • BREAKING: renames value to current and previousValue to previous in DetailedGlobalToggleProperties
    • BREAKING feature: Adds loading animation to all switches. You can disable it by setting loading to false.
    • adds innerGradient to AnimatedToggleSwitch
    • adds transitionType to AnimatedToggleSwitch.rolling, AnimatedToggleSwitch.rollingByHeight and AnimatedToggleSwitch.dual
    Open source →
  20. 0.5.2 22 Apr 2022
    Release notes
    • minor performance improvement
    • minor fixes
    • improves code documentation
    • adds dragCursor and draggingCursor to CustomAnimatedToggleSwitch
    • adds iconsTappable, defaultCursor, dragCursor and draggingCursor to AnimatedToggleSwitch
    Open source →
  21. 0.5.1 21 Apr 2022
    Release notes
    Open source →
  22. 0.5.0 20 Apr 2022
    Release notes
    • minor performance improvement
    • fixes problems with tight constraints
    • BREAKING: changes default values of animationOffset and clipAnimation in AnimatedToggleSwitch.dual
    Open source →
  23. 0.4.0 03 Apr 2022
    Release notes
    • minor fixes and performance improvements
    • adds indicatorBorderRadius to AnimatedToggleSwitch
    • adds animationOffset, clipAnimation and opacityAnimation to AnimatedToggleSwitch.dual
    • BREAKING: sets default values of animationOffset, clipAnimation and opacityAnimation in AnimatedToggleSwitch.dual
    • BREAKING: renames foregroundBorder to indicatorBorder
    Open source →
  24. 0.3.1 23 Mar 2022
    Release notes
    • minor fixes
    Open source →
  25. 0.3.0 21 Mar 2022
    Release notes
    • introduces CustomAnimatedToggleSwitch for maximum customizability
    • most constructors of AnimatedToggleSwitch have 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, dragStartCurve and textDirection to AnimatedToggleSwitch
    • BREAKING: TextDirection is taken from BuildContext by default now!!!
    • BREAKING: changes parameters and names of some builders
    • BREAKING: renames AnimatedToggleSwitch.byHeight to AnimatedToggleSwitch.customByHeight
    • BREAKING: adds default textMargin to AnimatedToggleSwitch.dual
    • fixes (#9)
    Open source →
  26. 0.3.0-beta.3 21 Mar 2022 pre-release

    Nothing published for this version

  27. 0.3.0-beta.2 21 Mar 2022 pre-release

    Nothing published for this version

  28. 0.3.0-beta.1 21 Mar 2022 pre-release

    Nothing published for this version

  29. 0.3.0-beta.0 20 Mar 2022 pre-release

    Nothing published for this version

  30. 0.2.3 28 Feb 2022
    Release notes
    • BREAKING: removes indicatorType
    • BREAKING: changes default innerColor
    • adds BoxShadow parameters
    Open source →
  31. 0.2.2 27 Jan 2022
    Release notes
    • minor performance improvements
    Open source →
  32. 0.2.1 03 Oct 2021
    Release notes
    • migrates to Flutter 2.5
    • minor changes/fixes
    Open source →
  33. 0.2.0 21 May 2021
    Release notes
    • minor Changes
    • fixes FittingMode.preventHorizontalOverlapping
    • improves Web support
    Open source →
  34. 0.1.3 27 Mar 2021
    Release notes
    • updates README.md
    Open source →
  35. 0.1.2 27 Mar 2021
    Release notes
    • adds AnimatedToggleSwitch.dual
    • adds some settings (AnimationType)
    Open source →
  36. 0.1.1 26 Mar 2021
    Release notes
    • minor fix
    Open source →
  37. 0.1.0 26 Mar 2021
    Release notes
    • initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive