[github] Fix Icons in Item Preview (#64)

The icons for GitHub items were not shown, because we did not set the
correct "sourceIconType", which was required for the "ItemSource"
widget.
This commit is contained in:
Rico Berger
2023-11-04 11:48:12 +01:00
committed by GitHub
parent 3afbe5674b
commit d62bf10eaf

View File

@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:feeddeck/models/item.dart';
import 'package:feeddeck/models/source.dart';
import 'package:feeddeck/utils/image_url.dart';
import 'package:feeddeck/widgets/item/preview/utils/details.dart';
import 'package:feeddeck/widgets/item/preview/utils/item_actions.dart';
import 'package:feeddeck/widgets/item/preview/utils/item_description.dart';
@@ -29,6 +30,7 @@ class ItemPreviewGithub extends StatelessWidget {
sourceSubtitle: '${source.type.toLocalizedString()}: ${source.title}',
sourceType: source.type,
sourceIcon: item.media,
sourceIconType: FDImageType.item,
itemPublishedAt: item.publishedAt,
itemIsRead: item.isRead,
),