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.
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.
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.
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.
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?
@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.
@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,
)
Most helpful comment
I realized this last weekend that I never pushed my changes adding
textAlignbefore releasing 1.0.0-pre.1. Those changes will be available in 1.0.0-pre.2 or are available now on thenew-parserbranch if you'd rather access them earlier.