multi_state_switch 1.1.0
multi_state_switch: ^1.1.0 copied to clipboard
A Material 3 switch with any number of states (off / middle / on, ...), built on a discrete Slider so dragging, snapping and semantics come for free.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add multi_state_switchThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
multi_state_switch: ^1.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:multi_state_switch/multi_state_switch.dart';