toggle_switch_plus 0.0.3 copy "toggle_switch_plus: ^0.0.3" to clipboard
toggle_switch_plus: ^0.0.3 copied to clipboard

A simple toggle switch widget can be customized with desired width, padding, gap, colors, text, corner radius etc.

A rich but simple toggle switch widget. It can be fully customized with desired width, padding, gap, colors, text, corner radius etc. It also maintains selection state.

Features #

  1. you can easily get the selected value on => onChanged(value) method
  2. you can put values and display values differently

Getting started #

  1. you need to pass values => List
  2. you will get the selected value in the onChanged(value)

Usage #

  1. you need to pass values => List
  2. you will get the selected value in the onChanged(value)
    ToggleSwitchPlus(
      values: const ['male','female','other'],
      labels: const ['Male','Female','Other'],
      onChanged: (value) {
        debugPrint(value);
      },
    ),

Additional information #

  1. you can put values and display values that is named as labels differently
3
likes
130
points
26
downloads

Publisher

verified publisherhalfmadcoder.com

Weekly Downloads

A simple toggle switch widget can be customized with desired width, padding, gap, colors, text, corner radius etc.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on toggle_switch_plus