Search packages, repositories and app categories

Package detailsv1.5.0

flutter_range_slider

a 2-thumb Material Design range slider for Flutter that allows a range selection

30-day downloads
265
Likes
45
Pub points
30

Install package

flutter pub add flutter_range_slider

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A two-thumb Material Design range slider for Flutter, enabling users to select a range of values by dragging both thumbs. Designed with Material Design principles, it provides an intuitive interface for setting minimum and maximum values within a specified range. The package is lightweight and integrates seamlessly into Flutter applications requiring range-based input, such as filters, price selectors, or time intervals. It supports customization of colors, thumb shapes, and value formatting.

Use cases

  • Filtering data by range
  • Setting price or time intervals
  • Adjusting numerical ranges in forms
  • Customizable range selection UI
  • Interactive sliders in dashboards

Key features

  • Two-thumb range selection
  • Material Design compliance
  • Customizable appearance
  • Smooth drag interactions
  • Supports value formatting
  • Lightweight and easy to integrate

Suitable for

  • Form inputs requiring range selection
  • Data filtering interfaces
  • Price or time range pickers
  • UI components needing interactive sliders
  • Developers using Material Design

Considerations

  • No platform-specific customization options
  • Limited built-in accessibility features
  • Requires manual handling of value validation
  • Not optimized for touch on small screens
  • No support for vertical orientation

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

RangeSlider

An extension of the Flutter Material Slider to allow selection of a range of values via 2 thumbs.

Flutter RangeSlider


Step by step explanation

A full explanation on how to build such Widget may be found on my blog:

  • in English, click here
  • in French, click here

Getting Started

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)


Example

An example can be found in the example folder. Check it out.

Categories

Source repository

Projects using this package

No data available yet.