- adds support for vertical switches (#61)
- adds
clipBehavior
toAnimatedToggleSwitch
(#56)
- adds
indicatorGradient
toToggleStyle
(#44) - fixes problems with
backgroundGradient
andbackgroundColor
(#46) - adds
AnimationType.none
- introduces
positionListener
(#50) - fixes #51
- adds tests for all
AnimatedToggleSwitch
constructors - adds
separatorBuilder
,customSeparatorBuilder
,style
andstyleAnimationType
toAnimatedToggleSwitch
- adds
separatorBuilder
toCustomAnimatedToggleSwitch
- adds
active
to all constructors (#30) - adds
styleBuilder
andstyleList
toAnimatedToggleSwitch
- adds
iconList
toAnimatedToggleSwitch.size
,AnimatedToggleSwitch.sizeByHeight
,AnimatedToggleSwitch.rolling
andAnimatedToggleSwitch.rollingByHeight
- BREAKING: moves many parameters in
AnimatedToggleSwitch
tostyle
:innerColor
(renamed tobackgroundColor
)innerGradient
(renamed tobackgroundGradient
)borderColor
indicatorColor
borderRadius
indicatorBorderColor
indicatorBorder
indicatorBorder
foregroundBoxShadow
(renamed toindicatorBoxShadow
)boxShadow
- BREAKING: moves all cursor parameters to
cursors
- BREAKING: removes
borderColorBuilder
in favor of the newstyleBuilder
- BREAKING:
indicatorAnimationType
handlesToggleStyle.indicatorColor
,ToggleStyle.indicatorBorderRadius
,ToggleStyle.indicatorBorder
andToggleStyle.indicatorBoxShadow
now - BREAKING: adds parameter to
onTap
(#41) - BREAKING: changes default background color from
ThemeData.scaffoldBackgroundColor
toThemeData.colorScheme.surface
- BREAKING: renames
dif
tospacing
in all constructors - BREAKING: replaces
transitionType
withindicatorTransition
inAnimatedToggleSwitch.rolling()
,AnimatedToggleSwitch.rollingByHeight()
andAnimatedToggleSwitch.dual()
- BREAKING: removes
iconSize
andselectedIconSize
inAnimatedToggleSwitch
constructorsrolling()
,rollingByHeight()
,dual()
: new parameterindicatorIconScale
controls scaling nowsize()
,sizeByHeight()
: new parameterselectedIconScale
controls scaling now
- adds possibility that no valid value is selected (by setting
allowUnlistedValues
totrue
) - adds new parameters to almost all constructors:
allowUnlistedValues
,indicatorAppearingBuilder
,indicatorAppearingDuration
,indicatorAppearingCurve
- adds screenshot to pubspec.yaml
- adds examples for loading animation to README
- fixes README
- fixes (#28)
- BREAKING: increases minimum SDK to 2.17
- BREAKING: renames
value
tocurrent
andpreviousValue
toprevious
inDetailedGlobalToggleProperties
- BREAKING feature: Adds loading animation to all switches. You can disable it by setting
loading
to false. - adds
innerGradient
toAnimatedToggleSwitch
- adds
transitionType
toAnimatedToggleSwitch.rolling
,AnimatedToggleSwitch.rollingByHeight
andAnimatedToggleSwitch.dual
- minor performance improvement
- minor fixes
- improves code documentation
- adds
dragCursor
anddraggingCursor
toCustomAnimatedToggleSwitch
- adds
iconsTappable
,defaultCursor
,dragCursor
anddraggingCursor
toAnimatedToggleSwitch
- fixes (#20)
- minor performance improvement
- fixes problems with tight constraints
- BREAKING: changes default values of
animationOffset
andclipAnimation
inAnimatedToggleSwitch.dual
- minor fixes and performance improvements
- adds
indicatorBorderRadius
toAnimatedToggleSwitch
- adds
animationOffset
,clipAnimation
andopacityAnimation
toAnimatedToggleSwitch.dual
- BREAKING: sets default values of
animationOffset
,clipAnimation
andopacityAnimation
inAnimatedToggleSwitch.dual
- BREAKING: renames
foregroundBorder
toindicatorBorder
- minor fixes
- 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
andtextDirection
toAnimatedToggleSwitch
- BREAKING:
TextDirection
is taken fromBuildContext
by default now!!! - BREAKING: changes parameters and names of some builders
- BREAKING: renames
AnimatedToggleSwitch.byHeight
toAnimatedToggleSwitch.customByHeight
- BREAKING: adds default
textMargin
toAnimatedToggleSwitch.dual
- fixes (#9)
- BREAKING: removes
indicatorType
- BREAKING: changes default
innerColor
- adds
BoxShadow
parameters
- minor performance improvements
- minor changes/fixes
- migrates to Flutter 2.5
- minor changes/fixes
- minor Changes
- fixes
FittingMode.preventHorizontalOverlapping
- improves Web support
- updates README.md
- adds
AnimatedToggleSwitch.dual
- adds some settings (
AnimationType
)
- minor fix
- initial release