multi_state_switch 1.1.0 copy "multi_state_switch: ^1.1.0" to clipboard
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_switch

This 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.0

Alternatively, 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';
0
likes
160
points
114
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#switch #toggle #slider #material

License

MIT (license)

Dependencies

flutter, material_ui

More

Packages that depend on multi_state_switch