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

tab label text is faded if text is too long. #8

Closed
krishnavamshi3 opened this issue Jan 23, 2020 · 1 comment
Closed

tab label text is faded if text is too long. #8

krishnavamshi3 opened this issue Jan 23, 2020 · 1 comment

Comments

@krishnavamshi3
Copy link

Hi, Tab label text is faded if text is too long and even if we use itemExtent parameter, it is not a reliable solution as we dont know the exact text if redered dynamically from server.
You may try this solution and update if it works as needed:

  • you can remove line 153 (CrossAxisAlignment.stretch) as it stretches the item to indefinitly and it will be an error if the widget is under any non-constrained widget.
  • you can remove line 102 (itemExtent: widget.itemExtent,) as it forces the children to have the given extent in the scroll direction [as per docs.]
  • you can remove line 158. now we can avoid specifying exact height of the container.

using itemExtent is not a good idea if the data is dynamic.

Hope this may be useful.

@Ali-Azmoud
Copy link
Owner

Hi, thanks for your solution.
In the latest version you can have multi line labels. I'm going to close this issue, feel free to open it if you need to

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

2 participants