mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-11 17:47:47 -05:00
[rss] Improve Rendering of Items (#52)
The items of an RSS feed are now rendered better, to achieve this we did the following changes: - Remove leading and trailing whitespaces from the item description which should be rendered. - Check if the media file of an item is an SVG image. If this is the case we will not add it to the "media" field in the database, because currently the CachedNetworkImage widget can not render SVGs. If we want to render them, we run into serious performance issue so we skip them completly. - Always assume that the content of an RSS feed contains HTML and render them as plain text in the preview and as markdown in the details. Since we also render images from the description now, we check if the "item.media" image should be rendered. If the description contains an image we do not render our own image. If the description doesn't contain a image we render it.
This commit is contained in:
@@ -43,6 +43,7 @@ dependencies:
|
||||
collection: ^1.17.0
|
||||
flutter_markdown: ^0.6.14
|
||||
flutter_native_splash: ^2.2.19
|
||||
html: ^0.15.4
|
||||
html2md: ^1.2.6
|
||||
intl: ^0.18.1
|
||||
just_audio: ^0.9.32
|
||||
|
||||
Reference in New Issue
Block a user