-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Flutter web Text Widget overflow not working as intended #36043
Comments
Can you try this wrap the text ConstrainedBox( |
It didn't work. In any case, I think Text is not currently working as intended. It should be the same as in Flutter. |
This is a limitation of the current implementation of text rendering. I'm working on a new implementation that fixes this issue among others. It's still work-in-progress, you can try it by setting this flag to true. Please give it a shot and let us know if that works for you. |
That worked, thank you. I hope you get the official Text version working correctly soon. Steps to get ellipsis working:
|
@mdebbar is there a way to set this flag when working with the unforked flutter web? |
Unfortunately, after the unfork, there's no easy way to make changes in the web engine (which is where the flag lives). Your best bet currently is to wait until the new implementation is ready and isn't experimental anymore. I'll be spending some time on it in the coming weeks, but I don't have an exact date for when it'll be done. |
Any news? |
@mdebbar I'm really looking forward to this fix :) if it's not likely to be fixed soon, it would be great if you could temporarily expose the enableExperimentalCanvasImplementation flag in the web engine |
Freshly available (haven't tried yet): |
Thanks @deckerst 😄 @McLarenCollege try the command that @deckerst suggested. It was added in flutter/engine#13929 that was merged yesterday. Please file issues if you encounter any, and make sure to mention in your issue that you are using this flag :) |
Yay it's working now! thank you for such a fast response |
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 |
The Text overflow in flutter web does not work for multiple lines.
For example by placing the following widget in the body of the Scaffold from the initial web project:
It does not show the ellipsis (...), however by changing maxLines to 1 it works. By using the exact same code on regular Flutter, it works as intended. It's a Flutter Web issue.
I tried different placements for the Text Widget and in every use case I got the same behavior, maxLines > 1 breaks the overflow logic.
The text was updated successfully, but these errors were encountered: