1

enter image description here

I would like to make such a slider. The color OK be fixed at black.

The current code is as follows

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Slider(
        activeColor: ColorManager.blueColor,
        value: _opacity,
        min: 0.0,
        max: 1.0,
        onChanged: updateOpacity,
      ),
    );
  }
Tdayo
  • 269
  • 4
  • 11
  • Your question is much like this: https://stackoverflow.com/questions/64199117/flutter-slider-with-gradient They want to create a slider with linear gradient color. You can try to change the linear gradient color with linear gradient transparent. Hope this help :) – Nguyen family Aug 13 '23 at 08:48

0 Answers0