handle dyn RICH_TEXT_NODE_TYPE_OGV_SEASON

Closes #983

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-10 20:44:54 +08:00
parent 745a510ffa
commit 309c871919

View File

@@ -308,8 +308,42 @@ TextSpan? richNode(
);
}
break;
case 'RICH_TEXT_NODE_TYPE_OGV_SEASON':
spanChildren
..add(
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Icon(
Icons.play_circle_outline_outlined,
size: 16,
color: theme.colorScheme.primary,
),
),
)
..add(
TextSpan(
text: i.text,
style: style,
recognizer: i.jumpUrl == null
? null
: (TapGestureRecognizer()
..onTap = () =>
PiliScheme.routePushFromUrl(i.jumpUrl!)),
),
);
break;
default:
spanChildren.add(TextSpan(text: i.text, style: style));
spanChildren.add(
TextSpan(
text: i.text,
style: style,
recognizer: i.jumpUrl == null
? null
: (TapGestureRecognizer()
..onTap = () =>
PiliScheme.routePushFromUrl(i.jumpUrl!)),
),
);
break;
}
}