Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider label text not rendered when nested in a Row #15659

Closed
xqwzts opened this issue Mar 18, 2018 · 2 comments
Closed

Slider label text not rendered when nested in a Row #15659

xqwzts opened this issue Mar 18, 2018 · 2 comments

Comments

@xqwzts
Copy link
Contributor

xqwzts commented Mar 18, 2018

When nesting a Slider widget in a Row the thumb shows up, but the text isn't rendered:

flutter_01

Widget _buildLineControls() {
    return new Column(
      children: <Widget>[
        new Row(
          children: <Widget>[
            const Text('Line width:'),
            new Expanded(
              child: new Slider(
                min: 1.0,
                max: 15.0,
                divisions: 15,
                label: '${lineWidth.round()}',
                value: lineWidth,
                activeColor: lineColor,
                onChanged: onLineWidthChanged,
              ),
            ),
          ],
        ),
      ],
    );
  }

But it works fine without the Row:

flutter_02

Widget _buildLineControls() {
    return new Column(
      children: <Widget>[
               new Slider(
                min: 1.0,
                max: 15.0,
                divisions: 15,
                label: '${lineWidth.round()}',
                value: lineWidth,
                activeColor: lineColor,
                onChanged: onLineWidthChanged,
              ),
      ],
    );
  }

This is on the latest master version:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.2.3-pre.41, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.0)
[✓] IntelliJ IDEA Community Edition (version 2017.2)
[✓] VS Code (version 1.21.1)
[✓] Connected devices (1 available)

@jason-simmons
Copy link
Member

Duplicate of #15702

@jason-simmons jason-simmons marked this as a duplicate of #15702 Mar 21, 2018
@github-actions
Copy link

github-actions bot commented Sep 3, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants