t_slider 0.0.1 copy "t_slider: ^0.0.1" to clipboard
t_slider: ^0.0.1 copied to clipboard

A simple customizable slider.

This is a simple customizable slider.

Features #

  • It slides based on the range you registered

Usage #

Here's a basic usage example

Container(
    height: 5, // Must set a value higher than one
    child: TSlider(
        onDragged: (value) {
            setState(() {
                myValue = value;
            });
        },
        background: TSliderTrackStyle(
            color: Colors.white
        ),
        primary: TSliderConfiguration(
            value: myValue,
            range: TRange(min: 0, max: 1), // The values will range from 0 to 1 (percentage)
            // range: TRange(min: 40, max: 60), // Values range from 40 to 60
            trackStyle: TSliderTrackStyle(
                color: Colors.black,
            ),
        ),
    ),
);

Additional information #

If you want to contribute, or just point out and error, visit the github repo: https://github.com/tonsoo/t-slider

0
likes
130
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple customizable slider.

License

MIT (license)

Dependencies

flutter

More

Packages that depend on t_slider