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

customEdgeInsets doesn't work for img element #214

Closed
ghost opened this issue Jan 15, 2020 · 2 comments
Closed

customEdgeInsets doesn't work for img element #214

ghost opened this issue Jan 15, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2020

customEdgeInsets doesn't work for img element event though I wrapped it in another block element. How can I achieve this?

@Sub6Resources
Copy link
Owner

Yes, this is a known issue with customEdgeInsets. customEdgeInsets will be deprecated in version 1.0.0, so I recommend migrating to 1.0.0-pre.1 using the migration guide.

@ghost
Copy link
Author

ghost commented Jan 16, 2020

Thank you for the reply. I successfully migrated and now margin is applied to img by wrapping with figure element. But now, line spacing doesn't work either by

style: {
  'p': Style.fromTextStyle(TextStyle(height: 1.7)),
}

or

css: "p { line-height: 1.7; }",

Anyway closing this issue for now.

This issue was closed.
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

1 participant