Skip to content

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

@oodavid

Description

@oodavid

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:

Text(
  '/root/sdcard/storage/camera/2019-11-20 12:12:11 a-file-with-a-long-path.png',
  overflow: TextOverflow.ellipsis,
)

Screenshot 2019-11-21 at 10 47 04

Proposal

Allow TextOverflow to clip text on the leading edge rather than the trailing edge.

Internal bug - b/180975303

Activity

added
a: typographyText rendering, possibly libtxt
c: proposalA detailed proposal for a change to Flutter
c: new featureNothing broken; request for a new capability
on Nov 21, 2019
added
frameworkflutter/packages/flutter repository. See also f: labels.
on Nov 21, 2019
added
customer: crowdAffects or could affect many people, though not necessarily a specific customer.
on Dec 22, 2019
feinstein

feinstein commented on Dec 22, 2019

@feinstein
Contributor

As I said in #47543 I suggest TextOverflow.ellipsisStart, TextOverflow.ellipsisMiddleand TextOverflow.ellipsisEnd.

changed the title [-]TextOverflow on leading edge[/-] [+]Add TextOverflow "ellipsisStart" , "ellipsisMiddle" and "ellipsisEnd" [/+] on Dec 30, 2019
trqalothman

trqalothman commented on Mar 22, 2020

@trqalothman
feinstein

feinstein commented on Mar 22, 2020

@feinstein
trqalothman

trqalothman commented on Mar 29, 2020

@trqalothman
feinstein

feinstein commented on Mar 29, 2020

@feinstein
Contributor

Give it a 👍🏻 (as they prioritize based on thumbs up count) and hope someone will get to fix it.

trqalothman

trqalothman commented on Apr 1, 2020

@trqalothman

57 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: typographyText rendering, possibly libtxtc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: googleVarious Google teamsframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @oodavid@xster@Hixie@goderbauer@HansMuller

        Issue actions

          Add TextOverflow "ellipsisStart" , "ellipsisMiddle" and "ellipsisEnd" · Issue #45336 · flutter/flutter