pref: add const to tag list
This commit is contained in:
parent
048e42600a
commit
6fb3c070d6
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue