Skip to content

Releases: PramodJoshi/toggle_switch

v2.3.0

25 Mar 19:15
Compare
Choose a tag to compare
  • Added customWidgets option:
    • overrides default widgets, foreground colors
    • parameter:
      • customWidgets (optional, type List<Widget>)
  • Added CustomBorderPaint class to optimize gradient border
  • Restructured project with src folder
  • Code cleanups

v2.2.3

25 Mar 17:57
Compare
Choose a tag to compare
  • Fixed center text issue

v2.2.2

21 Mar 16:38
Compare
Choose a tag to compare
  • Fixed overflow issue
  • Code cleanups

v2.2.1

15 Mar 21:57
Compare
Choose a tag to compare
  • Updated version in README
  • Updated screenshot

v2.2.0

15 Mar 21:56
Compare
Choose a tag to compare
  • Minor cleanups and fixes
  • Example updates
  • Added topics, screenshots and funding to pubspec
  • Separated RowToColumn widget class
  • Updated SDK to 4.0.0, modifier fixes (PR 83)
  • Added toggle disable functionality (PR 81):
    • parameter:
      • states (optional, type List)

v2.1.0

23 Apr 19:25
Compare
Choose a tag to compare
  • Added cancel toggle function (PR 77):
    • function:
      • cancelToggle: (index) {} (return type - Future<bool>)
  • Added these options PR 74):
    • center text:
      • centerText (optional, type bool - default false)
    • multi-line text:
      • multiLineText (optional, type bool - default false)
    • inherit activeFgColor and inactiveFgColor in customTextStyles
  • Null safety improvements (PR 68)

v2.0.1

15 Apr 21:38
Compare
Choose a tag to compare
  • Added vertical toggle switch option (PR 51):
    • parameter:
      • isVertical (type bool - default false)
  • Added active borders option (Partial implementation from PR 53):
    • parameter:
      • activeBorders (optional, type List)
    • list with only one Border value will apply that Border to all the active switches
    • different Border values can be provided for different switches
  • Added divider margin option:
    • parameter:
      • dividerMargin (optional, type double - default 8.0)
  • Made totalSwitches parameter optional.
  • Added new changes to customTextStyles:
    • list with only one TextStyle value will apply that TextStyle to all the active switches
  • Added new changes to customWidths:
    • customWidths can now reflect widths greater than device width
    • must use horizontal scroll view to prevent overflow

v1.4.0

23 Jan 18:03
Compare
Choose a tag to compare
  • Minor bug fix (PR 44).
    • return null when active switch is de-activated by re-tapping
  • Added changes to fix radiusStyle bug when text direction is set to TextDirection.rtl
    • parameter:
      • textDirectionRTL (optional, type bool - default false)
  • Added custom widths support
    • parameter:
      • customWidths (optional, type List)

v1.3.0

02 Nov 01:44
Compare
Choose a tag to compare
  • Added null support for initialLabelIndex (PR 39).
  • Added double tap support to de-select/de-activate active switch (PR 41):
    • parameter:
      • doubleTapDisable (optional, type bool - default false)
  • Added animation duration support:
    • parameter:
      • animationDuration (optional, type int - default 800)
  • Added package test

v1.2.0

01 Nov 22:50
0610d66
Compare
Choose a tag to compare
  • Added custom icons support:
    • parameter:
      • customIcons (optional, type List
    • customIcons will overwrite 'icons:'