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

TextAlign.justify is not working #187

Closed
zinkLin opened this issue Nov 19, 2019 · 3 comments
Closed

TextAlign.justify is not working #187

zinkLin opened this issue Nov 19, 2019 · 3 comments
Labels
bug Something isn't working more-info-needed More information is needed to resolve the issue. Will be closed if no response is received.

Comments

@zinkLin
Copy link

zinkLin commented Nov 19, 2019

customTextAlign: (elem) {
return TextAlign.justify;
},

It looks like TextAlign.left

@Sub6Resources Sub6Resources added bug Something isn't working more-info-needed More information is needed to resolve the issue. Will be closed if no response is received. labels Dec 12, 2019
@GeertJohan
Copy link
Contributor

TextAlign has been moved to the new style map.

Use flutter_html 1.0.0 or later for this to work. Will style paragraphs with justified text.

Html(
  data: yourHtmlData,
  style: {
    "p": Style(
      textAlign: TextAlign.justify,
    ),
  },
)

@sckoh
Copy link

sckoh commented Aug 13, 2020

TextAlign has been moved to the new style map.

Use flutter_html 1.0.0 or later for this to work. Will style paragraphs with justified text.

Html(
  data: yourHtmlData,
  style: {
    "p": Style(
      textAlign: TextAlign.justify,
    ),
  },
)

there is no textAlign field in Style

@erickok
Copy link
Collaborator

erickok commented Feb 8, 2021

Let us know if TextAlign.justify is still not working for you (it should!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-info-needed More information is needed to resolve the issue. Will be closed if no response is received.
Projects
None yet
Development

No branches or pull requests

5 participants