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

Libraries

toggle_switch_plus