Closed emagnier closed 3 years ago
Maybe the wrapTextWidget
could have a better name (if you have better ideas)?
Just to give more context in a "real world", I'm using overflowReplacement
with the marquee flutter package. So when the text is too long, it scrolls horizontally and automatically.
And since this replacement widget needs an extra width (to add fading edges), this new parameters allows to add padding to the original text widget, to offset the text alignment when the replacement widget isn't necessary.
I think this can be handled by my textBuilder
PR that is ready to land:
https://github.com/leisim/auto_size_text/pull/85
Indeed 👍
I'm looking forward to seeing it merged, thanks for your addition!
This PR adds the ability to wrap the text by any other widget (like a
Container
), without wrapping the widget specified in theoverflowReplacement
parameter.This is especially useful when you want to add extra padding on your text, but not on the overflow replacement widget.
For example: