rangeslider
an extension of the flutter material slider to allow selection of a range of values via 2 thumbs.
step by step explanation
a full explanation on how to build such widget may be found on my blog:
getting started
you should ensure that you add the following dependency in your flutter project.
dependencies:
flutter_range_slider: "^1.4.0"
you should then run flutter packages upgrade
or update your packages in intellij.
in your dart code, to use it:
import 'package:flutter_range_slider/flutter_range_slider.dart' as frs;
important note
as of version 1.7, flutter framework also has its own rangeslider.
if you want to keep working with this library, you need to import the package, using an alias e.g. frs.
then, your need to prefix both range slider and range slider callback with this alias (frs.range slider and frs.rangeslidercallback)
example
an example can be found in the example
folder. check it out.
Comments are closed.