mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
handle dyn RICH_TEXT_NODE_TYPE_OGV_SEASON
Closes #983 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -308,8 +308,42 @@ TextSpan? richNode(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
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:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user