pref: add const to tag list

This commit is contained in:
Amir Hossein Mousavi 2024-04-12 17:41:34 +03:30
parent 048e42600a
commit 6fb3c070d6
1 changed files with 1 additions and 2 deletions

View File

@ -60,13 +60,12 @@ class _HashtagState extends State<Hashtag> {
final item = state.items[index]; final item = state.items[index];
final type = item.type; final type = item.type;
switch (type) { switch (type) {
//TODO:Must add tags
case 'infography': case 'infography':
return InfographyItem( return InfographyItem(
image: item.image, image: item.image,
category: item.category!, category: item.category!,
title: item.title, title: item.title,
tag: [], tag: const [],
onMarkChanged: (_, value, __) => onMarkChanged: (_, value, __) =>
_changeMark(item.id, value, type), _changeMark(item.id, value, type),
createdAt: item.createdAt, createdAt: item.createdAt,