Skip to content

Sliders on a Row break when resizing #148

Open
@rodolfo-arg

Description

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:

Resizing.issue.flutter_xlider.mov

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions