mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
handle relation url
Closes #1566 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -652,17 +652,9 @@ class UserInfoCard extends StatelessWidget {
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
);
|
||||
if (item.jumpUrl?.isNotEmpty == true) {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
final isDark = Get.isDarkMode;
|
||||
PageUtils.handleWebview(
|
||||
'${item.jumpUrl}&native.theme=${isDark ? 2 : 1}&night=${isDark ? 1 : 0}',
|
||||
);
|
||||
},
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
return child;
|
||||
return GestureDetector(
|
||||
onTap: () => Get.toNamed('/followed?mid=${card.mid}&name=${card.name}'),
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user