flutter_range_slider
一个支持范围选择的双滑块 Material Design 滑块控件,适用于 Flutter。
Flutter 的 RangeSlider 小部件
以下为英文项目原文快照,最新内容请访问 GitHub。
An extension of the Flutter Material Slider to allow selection of a range of values via 2 thumbs.
A full explanation on how to build such Widget may be found on my blog:
You should ensure that you add the following dependency in your Flutter project.
dependencies:
flutter_range_slider: "^1.5.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 RangeSlider and RangeSliderCallback with this alias (frs.RangeSlider and frs.RangeSliderCallback)
An example can be found in the example folder. Check it out.
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗