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

ListView bug #5

Closed
sm2017 opened this issue Nov 15, 2020 · 2 comments
Closed

ListView bug #5

sm2017 opened this issue Nov 15, 2020 · 2 comments

Comments

@sm2017
Copy link
Contributor

sm2017 commented Nov 15, 2020

If we put ReadMoreText in a ListView it not worked as expected

    final child = ReadMoreText(
      'Flutter is Google’s mobile UI open source framework to build high-quality native (super fast) interfaces for iOS and Android apps with the unified codebase.',
      trimLines: 2,
      colorClickableText: Colors.pink,
      trimMode: TrimMode.Line,
      trimCollapsedText: '...Show more',
      trimExpandedText: ' show less',
    );
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        child,
        SizedBox(height: 15),
        ListView(
          shrinkWrap: true,
          physics: NeverScrollableScrollPhysics(),
          children: [
            child
          ],
        ),
      ],
    );

image

I/flutter (13835): linkSize Size(90.0, 19.0) textSize Size(347.0, 38.0)
I/flutter (13835): linkSize Size(347.0, 19.0) textSize Size(347.0, 38.0)

You can see linkSize in a ListView is wrong

@sm2017 sm2017 mentioned this issue Nov 15, 2020
@sm2017
Copy link
Contributor Author

sm2017 commented Nov 19, 2020

@jonataslaw can you please accept the PR and release a version?

jonataslaw added a commit that referenced this issue Nov 19, 2020
@sm2017
Copy link
Contributor Author

sm2017 commented Nov 22, 2020

@jonataslaw I don't know why, but after upgrading to latest version , I still have the problem
I want to fix line to 2max , but it is not works correctly, sometimes it is 3 line sometime 1.5 line! same as above screenshot

I double checked that I get #6 changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant