Skip to content

How to manage text in limited space ? #2

@pbouttier

Description

@pbouttier

Hi,

This package is a good idea, but how can we manage a text with limited space, with overflow and ellipsis for example ?

I've tried to tweaks your code and force somes max lines, but if the source can show more than the destination, some part of the text is not in the hero animation.

I've done something like this in _calculateBoundForTexts

if (sum > maxWidth) { nbLines++; if(maxLines != null && nbLines == maxLines) break; .... }

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions