slider_switch 0.0.14 copy "slider_switch: ^0.0.14" to clipboard
slider_switch: ^0.0.14 copied to clipboard

An small and fully customizable toggleable slider switch for flutter.

Slider Switch for Flutter #

A Slinding Switch for flutter.

Slider Switch

Getting Started #

Add dependency to pubspec.yaml

flutter:
    ...
    slider_switch: ^ 0.0.9
    ...

add the widget to your code

import 'package:slider_switch/slider_switch.dart';

...
SliderSwitch(
    // initialStatus: true, // default: false (false|true)
    // width: 50.0,
    // lenght: 120.0,
    // orientation: Axis.horizontal, // default: Axis.vertical (Axis.vertical|Axis.horizontal)
    statusColorOpacity: 0.7, // default 0.5
    onChanged: (bool value) => print("new speaking value $value"),
    statusOnIcon: Icons.record_voice_over, // default: Icons.volume_up
    statusOffIcon: Icons.voice_over_off, // default: Icons.volume_off
    statusOnColor: Colors.red, // default: Color.green
),
...
8
likes
140
pub points
40%
popularity

Publisher

verified publishersmallflutterpackages.blogspot.com

An small and fully customizable toggleable slider switch for flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on slider_switch