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

There is a space in TextAnimator implementation #5

Closed
nanox77 opened this issue Oct 7, 2022 · 1 comment
Closed

There is a space in TextAnimator implementation #5

nanox77 opened this issue Oct 7, 2022 · 1 comment

Comments

@nanox77
Copy link

nanox77 commented Oct 7, 2022

Hello!. Great package. I have an issue with TextAnimator and checking the library code I found this:

    for (var element in temp) {
      _words.add(element = '$element ');
    }

There is a space when you assign the element variable. Do you make it for a particular reason?

This is a problem if you need to center the text element. Shall we remove that space?.

Thank you!

@andrewpmoore
Copy link
Owner

Thanks for spotting that and apologies for not replying sooner, I didn't get a github notification for it.
I've just looked and it needs the space as it's trimming by space to chop up into words. I'm just about to publish a change that will trim the additional space off the last work in the list.

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