IssueRaiser

Add TextOverflow "ellipsisStart" , "ellipsisMiddle" and "ellipsisEnd"

<!-- Thank you for using Flutter! If you are looking for support, please check out our documentation or consider asking a question on Stack Overflow: * https://flutter.dev/ * https://api.flutter.dev/ * https://stackoverflow.com/questions/tagged/flutter?sort=frequent If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill our the template below. Please read our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports --> ## Use case When displaying file-paths, I'd prefer to show the file-name and clip the file-path. In this example, it's not possible to see the filenames: ```dart Text( '/root/sdcard/storage/camera/2019-11-20 12:12:11 a-file-with-a-long-path.png', overflow: TextOverflow.ellipsis, ) ``` <img width="410" alt="Screenshot 2019-11-21 at 10 47 04" src="https://user-images.githubusercontent.com/46879/69331201-43a29e00-0c4c-11ea-833e-9fa115b88926.png"> ## Proposal Allow TextOverflow to clip text on the leading edge rather than the trailing edge. <!-- Briefly but precisely describe what you would like Flutter to be able to do. Consider attaching images showing what you are imagining. Does this have to be provided by Flutter directly, or can it be provided by a package on pub.dev/flutter? If so, maybe consider implementing and publishing such a package rather than filing a bug. --> Internal bug - b/180975303

Posted by oodavid on Nov 21, 2019, 10:53 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

support (Software)

Add TextOverflow "ellipsisStart" , "ellipsisMiddle" and "ellipsisEnd"

oodavidNov 21, 2019, 10:53 AM

<!-- Thank you for using Flutter! If you are looking for support, please check out our documentation or consider asking a question on Stack Overflow: * https://flutter.dev/ * https://api.flutter.dev/ * https://stackoverflow.com/questions/tagged/flutter?sort=frequent If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill our the template below. Please read our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports --> ## Use case When displaying file-paths, I'd prefer to show the file-name and clip the file-path. In this example, it's not possible to see the filenames: ```dart Text( '/root/sdcard/storage/camera/2019-11-20 12:12:11 a-file-with-a-long-path.png', overflow: TextOverflow.ellipsis, ) ``` <img width="410" alt="Screenshot 2019-11-21 at 10 47 04" src="https://user-images.githubusercontent.com/46879/69331201-43a29e00-0c4c-11ea-833e-9fa115b88926.png"> ## Proposal Allow TextOverflow to clip text on the leading edge rather than the trailing edge. <!-- Briefly but precisely describe what you would like Flutter to be able to do. Consider attaching images showing what you are imagining. Does this have to be provided by Flutter directly, or can it be provided by a package on pub.dev/flutter? If so, maybe consider implementing and publishing such a package rather than filing a bug. --> Internal bug - b/180975303

Comments (0)

No comments yet. Start the discussion.

Comment on this issue