smooth_ios_style_toggle 0.1.1
smooth_ios_style_toggle: ^0.1.1 copied to clipboard
A smooth, fully customizable iOS-style toggle with a pill thumb (width = 2× height), inline labels beside the thumb, drag gestures, and built-in Flutter state management.
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.1.1Alternatively, 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';