Tdayo
Tdayo

Reputation: 339

I want to create a slider UI to manipulate opacity

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,
      ),
    );
  }

Upvotes: 1

Views: 71

Answers (0)

Related Questions