smooth_ios_style_toggle 0.2.0
smooth_ios_style_toggle: ^0.2.0 copied to clipboard
A smooth, fully customizable iOS-style toggle with a pill thumb (~1.7× height), adaptive labels beside or inside the thumb, drag gestures, validated sizing, and built-in Flutter state management (Valu [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add smooth_ios_style_toggleThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
smooth_ios_style_toggle: ^0.2.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:smooth_ios_style_toggle/smooth_ios_style_toggle.dart';