flutter_xlider icon indicating copy to clipboard operation
flutter_xlider copied to clipboard

Sliders on a Row break when resizing

Open rodolfo-arg opened this issue 1 year ago • 1 comments
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

rodolfo-arg avatar Oct 13 '24 23:10 rodolfo-arg