smooth_ios_style_toggle 0.2.0 copy "smooth_ios_style_toggle: ^0.2.0" to clipboard
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_toggle

This 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.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:smooth_ios_style_toggle/smooth_ios_style_toggle.dart';
1
likes
150
points
4
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 (ValueNotifier / InheritedWidget).

Repository (GitHub)
View/report issues
Contributing

Topics

#toggle #switch #widget #animation #ios

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smooth_ios_style_toggle