mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-24 15:59:59 -05:00
[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:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user