mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video reply
This commit is contained in:
@@ -50,12 +50,12 @@ class PBadge extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EdgeInsets paddingStyle =
|
EdgeInsets paddingStyle =
|
||||||
const EdgeInsets.symmetric(vertical: 1, horizontal: 3);
|
const EdgeInsets.symmetric(vertical: 2, horizontal: 3);
|
||||||
double fontSize = 11;
|
double fontSize = 11;
|
||||||
BorderRadius br = BorderRadius.circular(4);
|
BorderRadius br = BorderRadius.circular(4);
|
||||||
|
|
||||||
if (size == 'small') {
|
if (size == 'small') {
|
||||||
paddingStyle = const EdgeInsets.symmetric(vertical: 1, horizontal: 3);
|
paddingStyle = const EdgeInsets.symmetric(vertical: 2, horizontal: 3);
|
||||||
fontSize = 11;
|
fontSize = 11;
|
||||||
br = BorderRadius.circular(3);
|
br = BorderRadius.circular(3);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ class ReplyItem extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
if (replyItem!.isTop!) ...[
|
if (replyItem!.isTop!) ...[
|
||||||
const WidgetSpan(
|
const WidgetSpan(
|
||||||
alignment: PlaceholderAlignment.middle,
|
alignment: PlaceholderAlignment.top,
|
||||||
child: PBadge(
|
child: PBadge(
|
||||||
text: 'TOP',
|
text: 'TOP',
|
||||||
size: 'small',
|
size: 'small',
|
||||||
@@ -467,7 +467,7 @@ class ReplyItemRow extends StatelessWidget {
|
|||||||
if (replies![i].isUp!) ...[
|
if (replies![i].isUp!) ...[
|
||||||
const TextSpan(text: ' '),
|
const TextSpan(text: ' '),
|
||||||
const WidgetSpan(
|
const WidgetSpan(
|
||||||
alignment: PlaceholderAlignment.middle,
|
alignment: PlaceholderAlignment.top,
|
||||||
child: PBadge(
|
child: PBadge(
|
||||||
text: 'UP',
|
text: 'UP',
|
||||||
size: 'small',
|
size: 'small',
|
||||||
@@ -1160,7 +1160,7 @@ class MorePanel extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
// 已登录用户才显示删除
|
// 已登录用户才显示删除
|
||||||
if (GStorage.userInfo.get('userInfoCache') != null)
|
if (GStorage.userInfo.get('userInfoCache') != null) ...[
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () async => await menuActionHandler('delete'),
|
onTap: () async => await menuActionHandler('delete'),
|
||||||
minLeadingWidth: 0,
|
minLeadingWidth: 0,
|
||||||
@@ -1171,7 +1171,6 @@ class MorePanel extends StatelessWidget {
|
|||||||
.titleSmall!
|
.titleSmall!
|
||||||
.copyWith(color: errorColor)),
|
.copyWith(color: errorColor)),
|
||||||
),
|
),
|
||||||
if (GStorage.userInfo.get('userInfoCache') != null)
|
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () async => await menuActionHandler('report'),
|
onTap: () async => await menuActionHandler('report'),
|
||||||
minLeadingWidth: 0,
|
minLeadingWidth: 0,
|
||||||
@@ -1182,6 +1181,7 @@ class MorePanel extends StatelessWidget {
|
|||||||
.titleSmall!
|
.titleSmall!
|
||||||
.copyWith(color: errorColor)),
|
.copyWith(color: errorColor)),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () async => await menuActionHandler('copyAll'),
|
onTap: () async => await menuActionHandler('copyAll'),
|
||||||
minLeadingWidth: 0,
|
minLeadingWidth: 0,
|
||||||
|
|||||||
@@ -242,11 +242,14 @@ class PiliScheme {
|
|||||||
final int cid = await SearchHttp.ab2c(bvid: bvidVal, aid: aidVal);
|
final int cid = await SearchHttp.ab2c(bvid: bvidVal, aid: aidVal);
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
final String heroTag = Utils.makeHeroTag(aid);
|
final String heroTag = Utils.makeHeroTag(aid);
|
||||||
Get.toNamed<dynamic>('/video?bvid=$bvid&cid=$cid',
|
Get.toNamed<dynamic>(
|
||||||
arguments: <String, String?>{
|
'/video?bvid=$bvid&cid=$cid',
|
||||||
'pic': null,
|
arguments: <String, String?>{
|
||||||
'heroTag': heroTag,
|
'pic': null,
|
||||||
});
|
'heroTag': heroTag,
|
||||||
|
},
|
||||||
|
preventDuplicates: false,
|
||||||
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
SmartDialog.showToast('video获取失败: $e');
|
SmartDialog.showToast('video获取失败: $e');
|
||||||
|
|||||||
Reference in New Issue
Block a user