handle relation url

Closes #1566

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-15 18:25:15 +08:00
parent 32ce2b87db
commit c9de79532a
31 changed files with 634 additions and 393 deletions

View File

@@ -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,
);
}
}