mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 添加特关投稿私信错误处理
This commit is contained in:
@@ -199,17 +199,22 @@ class ChatItem extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
SmartDialog.showLoading();
|
try {
|
||||||
var bvid = content["bvid"];
|
SmartDialog.showLoading();
|
||||||
final int cid = await SearchHttp.ab2c(bvid: bvid);
|
var bvid = content["bvid"];
|
||||||
final String heroTag = Utils.makeHeroTag(bvid);
|
final int cid = await SearchHttp.ab2c(bvid: bvid);
|
||||||
SmartDialog.dismiss<dynamic>().then(
|
final String heroTag = Utils.makeHeroTag(bvid);
|
||||||
(e) => Get.toNamed<dynamic>('/video?bvid=$bvid&cid=$cid',
|
SmartDialog.dismiss<dynamic>().then(
|
||||||
arguments: <String, String?>{
|
(e) => Get.toNamed<dynamic>('/video?bvid=$bvid&cid=$cid',
|
||||||
'pic': content['thumb'],
|
arguments: <String, String?>{
|
||||||
'heroTag': heroTag,
|
'pic': content['thumb'],
|
||||||
}),
|
'heroTag': heroTag,
|
||||||
);
|
}),
|
||||||
|
);
|
||||||
|
} catch (err) {
|
||||||
|
SmartDialog.dismiss();
|
||||||
|
SmartDialog.showToast(err.toString());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: NetworkImgLayer(
|
child: NetworkImgLayer(
|
||||||
width: 220,
|
width: 220,
|
||||||
|
|||||||
Reference in New Issue
Block a user