mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-24 20:40:11 +08:00
@@ -1,6 +1,7 @@
|
|||||||
import 'dart:math' as math;
|
import 'dart:math' as math;
|
||||||
|
|
||||||
import 'package:PiliPlus/common/assets.dart';
|
import 'package:PiliPlus/common/assets.dart';
|
||||||
|
import 'package:PiliPlus/common/widgets/dialog/simple_dialog_option.dart';
|
||||||
import 'package:PiliPlus/common/widgets/gesture/tap_gesture_recognizer.dart';
|
import 'package:PiliPlus/common/widgets/gesture/tap_gesture_recognizer.dart';
|
||||||
import 'package:PiliPlus/common/widgets/image/cached_network_svg_image.dart';
|
import 'package:PiliPlus/common/widgets/image/cached_network_svg_image.dart';
|
||||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||||
@@ -231,7 +232,7 @@ class OpusContent extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
if (!(pic.isLongPic ?? false)) {
|
if (!(pic.isLongPic ?? false)) {
|
||||||
child = fromHero(
|
child = fromHero(
|
||||||
tag: pic.url!,
|
tag: '${pic.url!}$hashCode',
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -241,6 +242,7 @@ class OpusContent extends StatelessWidget {
|
|||||||
imgList: images,
|
imgList: images,
|
||||||
initialPage: images.indexWhere((e) => e.url == pic.url),
|
initialPage: images.indexWhere((e) => e.url == pic.url),
|
||||||
quality: 60,
|
quality: 60,
|
||||||
|
tag: hashCode.toString(),
|
||||||
),
|
),
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
@@ -598,15 +600,34 @@ class OpusContent extends StatelessWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type == 'LINK_CARD_TYPE_ITEM_NULL') {
|
if (type == 'LINK_CARD_TYPE_ITEM_NULL') {
|
||||||
switch (card.itemNull?.text) {
|
showDialog(
|
||||||
case '视频':
|
context: context,
|
||||||
PiliScheme.videoPush(
|
builder: (context) => SimpleDialog(
|
||||||
int.parse(card.oid!),
|
clipBehavior: .hardEdge,
|
||||||
null,
|
contentPadding: const .symmetric(
|
||||||
);
|
vertical: 12,
|
||||||
default:
|
),
|
||||||
PageUtils.pushDynFromId(id: card.oid!);
|
children: [
|
||||||
}
|
DialogOption(
|
||||||
|
onPressed: () {
|
||||||
|
Get.back();
|
||||||
|
PiliScheme.videoPush(
|
||||||
|
int.parse(card.oid!),
|
||||||
|
null,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
child: const Text('视频'),
|
||||||
|
),
|
||||||
|
DialogOption(
|
||||||
|
onPressed: () {
|
||||||
|
Get.back();
|
||||||
|
PageUtils.pushDynFromId(id: card.oid!);
|
||||||
|
},
|
||||||
|
child: const Text('动态/专栏'),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final url = switch (type) {
|
final url = switch (type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user