flutter_xlider
flutter_xlider copied to clipboard
Sliders on a Row break when resizing
trafficstars
When having two expanded sliders side by side as part of a Row. After resizing the window, the slider "clicking/tapping" capability breaks and it no longer selects the correct position. Snippet:
Row(
children: [
Expanded(
child: FlutterSlider(
max: 500,
min: 0,
values: [value],
onDragging: (_, currentValue, ___) {
setState(() {
value = currentValue as double;
});
},
),
),
Expanded(
child: FlutterSlider(
max: 500,
min: 0,
values: [value],
onDragging: (_, currentValue, ___) {
setState(() {
value = currentValue as double;
});
},
),
),
],
),
See video:
https://github.com/user-attachments/assets/73a2406b-5bb4-4830-b6c3-d2fc6ca9c0b5