Releases: PramodJoshi/toggle_switch
Releases · PramodJoshi/toggle_switch
v2.3.0
v2.2.3
- Fixed center text issue
v2.2.2
v2.2.1
- Updated version in README
- Updated screenshot
v2.2.0
v2.1.0
- Added cancel toggle function (PR 77):
- function:
- cancelToggle: (index) {} (return type - Future<bool>)
- function:
- 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
- center text:
- Null safety improvements (PR 68)
v2.0.1
- Added vertical toggle switch option (PR 51):
- parameter:
- isVertical (type bool - default false)
- parameter:
- 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
- parameter:
- Added divider margin option:
- parameter:
- dividerMargin (optional, type double - default 8.0)
- parameter:
- 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
- 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)
- parameter:
- Added custom widths support
- parameter:
- customWidths (optional, type List)
- parameter:
v1.3.0
- 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)
- parameter:
- Added animation duration support:
- parameter:
- animationDuration (optional, type int - default 800)
- parameter:
- Added package test
v1.2.0
- Added custom icons support:
- parameter:
- customIcons (optional, type List
- customIcons will overwrite 'icons:'
- parameter: