现在我通过这种方法获取3个输入(A,B和C)
Slider(
value: A,
min: 0,
max: 100,
divisions: 100,
label: 'A',
onChanged: (value) {
setState(
() {
A = value.toInt();
},
);
},
),
I used different slider for every input but my task is to take 3 inputs in a pie-chart(In which user will be able to set 3 values by dragging marker/courser )and the combination of all 3 inputs should be 100 but i didn't found any widget like this please suggest me any solution.
Maybe RangeSlider can help. It's a slider but with two thumbs. It can do the job, but I don't think it can have a distinct color for the first range (0 to first thumb) and the last range (second thumb to 100).