Flutter_widget_from_html: Display Image Inline

Created on 31 Jan 2019  路  8Comments  路  Source: daohoangson/flutter_widget_from_html

Hey, do you think it would be possible to add displaying of images inline (taking a size parameter in the tag)
Someone has done this for richtext at https://github.com/bytedance/RealRichText
I had a look at using the flutter_widget_from_html_core package and extending the widget builder but i am afraid i dont really understand how

enhancement

Most helpful comment

v0.2.2 has been released with proper support for inline images 馃帀

All 8 comments

Regarding inline image, I'm still waiting for the official support from Flutter https://github.com/flutter/flutter/issues/2022. It was an old issue but it has been updated recently (6 days ago) without an ETA.

They added an eta of september this year. Would it be possible to integrate with that realrichtext widget? Would just need to generate widgets and append them to a list, textspans for text (with relevant formatting) and imagespans for images

I published package drop_cap_text to achive DropCapText, you can also put an image as custom widget inside DropCap.

image

Support for inline widget is coming!

@skipness yes!!!1

The PR is merged now (see https://github.com/flutter/flutter/issues/2022#issuecomment-501869775), hopefully I can release this for 0.2.2.

Good news, I have got WidgetSpan working with images (see #53) 馃帀

Screen Shot 2019-06-17 at 12 41 41 AM

v0.2.2 has been released with proper support for inline images 馃帀

Was this page helpful?
0 / 5 - 0 ratings