Skip to content
pubscout

gradient_slider

1.3.1, released 4 months ago by an unverified publisher

A Flutter slider and range slider with gradient tracks and customizable image thumbs.

WASM-ready
$ flutter pub add gradient_slider
Source repository

What it does

Provides Slider and RangeSlider widgets that support gradient active/inactive tracks, image‑based thumbs, buffer tracks, and extensive styling options. It wraps a regular Slider/RangeSlider, merging its settings with the inherited SliderTheme.

AI-written summary of version 1.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a gradient‑styled slider or range slider
  • You want to show a download/playback buffer on a slider
  • You require custom thumb images instead of the default material thumb

Skip it when

  • A plain, unstyled slider is sufficient
  • You need a highly performance‑critical slider with minimal overhead

Strengths

  • Gradient track styling for both active and inactive portions
  • Custom thumb images via asset or any ImageProvider
  • Support for secondary (buffer) track and full theming integration

Weaknesses

  • Thumb hiding is only supported for single sliders, not range sliders
  • Limited to Flutter platforms; no web‑specific optimizations

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
GradientSlider(
  thumbAsset: 'assets/vert_thumb.png',
  thumbHeight: 30,
  thumbWidth: 30,
  trackBorder: 1,
  activeTrackGradient: const LinearGradient(colors: [Colors.pink, Colors.blue]),
  slider: Slider(value: 0.5, onChanged: (v) {}),
);

Alternatives

Packages that do the same job and could replace gradient_slider.