switch_up 0.0.2+1  switch_up: ^0.0.2+1 copied to clipboard
switch_up: ^0.0.2+1 copied to clipboard
An animated toggle switch which can be fully customized with desired width, colors, text, corner radius, animation etc. It also maintains selection state.
Use this package as a library
Depend on it
Run this command:
With Flutter:
 $ flutter pub add switch_upThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
  switch_up: ^0.0.2+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:switch_up/switch_up.dart';