mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
feat: msg like detail
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -170,9 +170,19 @@ class _LikeMePageState extends State<LikeMePage> {
|
||||
return ListTile(
|
||||
onTap: () {
|
||||
String? nativeUri = item.item?.nativeUri;
|
||||
if (nativeUri == null ||
|
||||
nativeUri.isEmpty ||
|
||||
nativeUri.startsWith('?')) {
|
||||
bool isInvalid =
|
||||
nativeUri == null || nativeUri.isEmpty || nativeUri.startsWith('?');
|
||||
if (item.counts! > 1) {
|
||||
Get.toNamed(
|
||||
'msgLikeDetail',
|
||||
parameters: {
|
||||
'id': item.id!.toString(),
|
||||
if (!isInvalid) 'uri': nativeUri,
|
||||
},
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (isInvalid) {
|
||||
return;
|
||||
}
|
||||
PiliScheme.routePushFromUrl(nativeUri);
|
||||
|
||||
Reference in New Issue
Block a user