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

Allow fitting text instead of ellipsis #342

Closed
LuisMiguelSS opened this issue May 19, 2022 · 2 comments
Closed

Allow fitting text instead of ellipsis #342

LuisMiguelSS opened this issue May 19, 2022 · 2 comments

Comments

@LuisMiguelSS
Copy link

If the text (String label) of an SlidableAction is bigger that what can be fit, the ellipsis is shown, as directed in

      children.add(
        Text(
          label!,
          overflow: TextOverflow.ellipsis,
        ),
      );

It would be nice to allow making the text shrink as needed, probably by adding a FittedBox as asked in this StackOverflow question.

I can upload a pull request if needed.

@LuisMiguelSS
Copy link
Author

Please note that this could also be done via a CustomSlidableAction with a custom Widget, but may still be a nice add-in.

@letsar
Copy link
Owner

letsar commented Jul 10, 2022

There is a ton of specialized feature request concerning SlidableAction. I prefer to redirect towards CustomSlidableAction in these case otherwise SlidableAction would become too complicated.

@letsar letsar closed this as completed Jul 10, 2022
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