Closed theneshofficial closed 4 years ago
Do you want to align all images in the HTML or only this specific instance?
@daohoangson all images
If you want to center all images, it's quite easy. Just provide a custom WidgetFactory
and wrap the image in Center
widget. However, your HTML specify width: 200px
so doing that alone won't work, you need to ignore the width too. See the full example below:
Shahril said young leaders need to show that when they are in positions of power, they do not continue “traditions” that have made voters cynical and resentful of politicians.
Wan Ahmad Fayhsal Ahmad Kamal of PPBM, who seeks election as party Youth leader, has come under scrutiny after a video clip made the rounds showing him purportedly offering support letters in exchange for votes.
"""; ```It will render like this:
Thanks @daohoangson it works great.
I'm trying to align images but unable to get done. I have no control of the HTML code so I had to do it on application side. Below is the HTML code:
Please advise how do I align center? I'm using latest RC version
0.5.0-rc.2020071301
of flutter_widget_from_html. Thank you.Output