Skip to content

Cannot configure line spacing in new version 1.0.0-pre.1 #202

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

Closed
munnadroid opened this issue Dec 29, 2019 · 7 comments
Closed

Cannot configure line spacing in new version 1.0.0-pre.1 #202

munnadroid opened this issue Dec 29, 2019 · 7 comments

Comments

@munnadroid
Copy link

Cannot configure line spacing in new version 1.0.0-pre.1.

Also, I cannot configure text alignment(like left, right, justify). I found customTextAlign 'Not yet available' in the migration guide.

@Sub6Resources
Copy link
Owner

Line spacing will likely be available in a later 1.0.0 release. Text alignment can be configured with the textAlign property in the Style class. I will update the migration guide soon to reflect that information.

@red42
Copy link

red42 commented Feb 11, 2020

Style doesn't seem to have a textAlign property. It does have an alignment property, but that does not seem to affect text alignment.

I've tried to use <center> but the text remains left-aligned.

@Sub6Resources
Copy link
Owner

I realized this last weekend that I never pushed my changes adding textAlign before releasing 1.0.0-pre.1. Those changes will be available in 1.0.0-pre.2 or are available now on the new-parser branch if you'd rather access them earlier.

@Sub6Resources Sub6Resources reopened this Feb 11, 2020
@thearaks
Copy link

Hi @Sub6Resources!
Do you know if 1.0.0-pre.2 will be released soon?
There's anything I can do to help/contribute to speed up the release?

@Sub6Resources
Copy link
Owner

@thearaks Unfortunately I am a full-time student and work part time as well, so I have very little time for personal projects, especially with the current pandemic affecting my schooling. I will try to get to this soon. If you would like to access the most recent changes, you can always import the new-parser branch specifically in your Flutter project.

@GeertJohan
Copy link
Contributor

@Sub6Resources Friendly reminder that the migration docs don't show the solution yet. I would open a PR but sadly that's not possible on wiki pages.

Find:

//Not yet available

Replace:

    "p": Style(
      textAlign: TextAlign.justify,
    )

@erickok
Copy link
Contributor

erickok commented Feb 8, 2021

Indeed supported now.

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

6 participants