Skip to content

v0.8.0

Compare
Choose a tag to compare
@maeddin maeddin released this 02 Sep 09:57
· 61 commits to main since this release
  • 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