[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:
Rico Berger
2023-10-28 11:37:00 +02:00
committed by GitHub
parent 8dc83a5d5a
commit 55c6da07d9
8 changed files with 47 additions and 19 deletions

View File

@@ -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