mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 视频卡片弹出菜单图标统一
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||||||
|
|
||||||
import '../../http/user.dart';
|
import '../../http/user.dart';
|
||||||
import '../../http/video.dart';
|
import '../../http/video.dart';
|
||||||
@@ -45,11 +46,11 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
value: 'pause',
|
value: 'pause',
|
||||||
height: menuItemHeight,
|
height: menuItemHeight,
|
||||||
child: const Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(CupertinoIcons.clock, size: 16),
|
Icon(MdiIcons.clockTimeEightOutline, size: 16),
|
||||||
SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
Text('稍后再看', style: TextStyle(fontSize: 13))
|
const Text('稍后再看', style: TextStyle(fontSize: 13))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -64,7 +65,7 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
height: menuItemHeight,
|
height: menuItemHeight,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(CupertinoIcons.person, size: 16),
|
Icon(MdiIcons.accountCircleOutline, size: 16),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
Text('访问:${videoItem.owner.name}',
|
Text('访问:${videoItem.owner.name}',
|
||||||
style: const TextStyle(fontSize: 13))
|
style: const TextStyle(fontSize: 13))
|
||||||
@@ -195,9 +196,8 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
bvid: videoItem.bvid as String,
|
bvid: videoItem.bvid as String,
|
||||||
type: true);
|
type: true);
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
SmartDialog.showToast(res['status']
|
SmartDialog.showToast(
|
||||||
? "点踩成功"
|
res['status'] ? "点踩成功" : res['msg']);
|
||||||
: res['msg']);
|
|
||||||
Get.back();
|
Get.back();
|
||||||
},
|
},
|
||||||
child: const Text("点踩"),
|
child: const Text("点踩"),
|
||||||
@@ -209,9 +209,8 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
bvid: videoItem.bvid as String,
|
bvid: videoItem.bvid as String,
|
||||||
type: false);
|
type: false);
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
SmartDialog.showToast(res['status']
|
SmartDialog.showToast(
|
||||||
? "取消踩"
|
res['status'] ? "取消踩" : res['msg']);
|
||||||
: res['msg']);
|
|
||||||
Get.back();
|
Get.back();
|
||||||
},
|
},
|
||||||
child: const Text("撤销"),
|
child: const Text("撤销"),
|
||||||
@@ -228,11 +227,11 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
value: 'dislike',
|
value: 'dislike',
|
||||||
height: menuItemHeight,
|
height: menuItemHeight,
|
||||||
child: const Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(CupertinoIcons.hand_thumbsdown, size: 16),
|
Icon(MdiIcons.thumbDownOutline, size: 16),
|
||||||
SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
Text('不感兴趣', style: TextStyle(fontSize: 13))
|
const Text('不感兴趣', style: TextStyle(fontSize: 13))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -284,7 +283,7 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
height: menuItemHeight,
|
height: menuItemHeight,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(CupertinoIcons.nosign, size: 16),
|
Icon(MdiIcons.cancel, size: 16),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
Text('拉黑:${videoItem.owner.name}',
|
Text('拉黑:${videoItem.owner.name}',
|
||||||
style: const TextStyle(fontSize: 13))
|
style: const TextStyle(fontSize: 13))
|
||||||
@@ -316,8 +315,8 @@ class VideoPopupMenu extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
MineController.anonymity
|
MineController.anonymity
|
||||||
? CupertinoIcons.shield_slash
|
? MdiIcons.incognitoOff
|
||||||
: CupertinoIcons.checkmark_shield,
|
: MdiIcons.incognito,
|
||||||
size: 16,
|
size: 16,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
|
|||||||
Reference in New Issue
Block a user