mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: dyn square type
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -305,11 +305,16 @@ Widget forWard(item, context, source, callback, {floor = 1}) {
|
|||||||
case 'DYNAMIC_TYPE_COMMON_SQUARE':
|
case 'DYNAMIC_TYPE_COMMON_SQUARE':
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Get.toNamed('/webview', parameters: {
|
try {
|
||||||
'url': item.modules.moduleDynamic.major.common['jump_url'],
|
String url = item.modules.moduleDynamic.major.common['jump_url'];
|
||||||
'type': 'url',
|
if (url.contains('bangumi/play') && Utils.viewPgcFromUri(url)) {
|
||||||
'pageTitle': item.modules.moduleDynamic.major.common['title']
|
return;
|
||||||
});
|
}
|
||||||
|
Get.toNamed(
|
||||||
|
'/webview',
|
||||||
|
parameters: {'url': url},
|
||||||
|
);
|
||||||
|
} catch (_) {}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
|||||||
Reference in New Issue
Block a user