Skip to content

Commit

Permalink
The model tag supports multiple tag configurations, separated by commas.
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Jul 31, 2024
1 parent 7d2a20c commit 544001c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/page/component/model_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ class _ModelItemState extends State<ModelItem> {

var tags = <Widget>[];
if (item.tag != null) {
tags.add(buildTag(
customColors,
item.tag!,
tagTextColor: item.tagTextColor,
tagBgColor: item.tagBgColor,
));
item.tag!.split(",").forEach((tag) {
if (tag.isEmpty) return;

tags.add(buildTag(
customColors,
tag,
tagTextColor: item.tagTextColor,
tagBgColor: item.tagBgColor,
));
});
}

if (item.supportVision) {
Expand Down

0 comments on commit 544001c

Please sign in to comment.