mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 09:37:52 +08:00
@@ -3,37 +3,43 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
class CustomIcons {
|
||||
static const IconData coin = _CustomIconData(0xe800);
|
||||
static const IconData dm_off = _CustomIconData(0xe801);
|
||||
static const IconData dm_on = _CustomIconData(0xe802);
|
||||
static const IconData dm_settings = _CustomIconData(0xe803);
|
||||
static const IconData dyn = _CustomIconData(0xe804);
|
||||
static const IconData fav = _CustomIconData(0xe805);
|
||||
static const IconData flip_rotate_90 = _CustomIconData(0xe806);
|
||||
static const IconData live_reserve = _CustomIconData(0xe807);
|
||||
static const IconData open_in_full_rotate_45 = _CustomIconData(0xe808);
|
||||
static const IconData player_dm_tip_back = _CustomIconData(0xe809);
|
||||
static const IconData player_dm_tip_copy = _CustomIconData(0xe80a);
|
||||
static const IconData player_dm_tip_like = _CustomIconData(0xe80b);
|
||||
static const IconData player_dm_tip_like_solid = _CustomIconData(0xe80c);
|
||||
static const IconData player_dm_tip_recall = _CustomIconData(0xe80d);
|
||||
static const IconData repeat_rounded_rotate_90 = _CustomIconData(0xe80e);
|
||||
static const IconData share = _CustomIconData(0xe80f);
|
||||
static const IconData share_line = _CustomIconData(0xe810);
|
||||
static const IconData share_node = _CustomIconData(0xe811);
|
||||
static const IconData splitscreen_rotate_90 = _CustomIconData(0xe812);
|
||||
static const IconData star_favorite_line = _CustomIconData(0xe813);
|
||||
static const IconData star_favorite_solid = _CustomIconData(0xe814);
|
||||
static const IconData thumbs_down = _CustomIconData(0xe815);
|
||||
static const IconData thumbs_down_outline = _CustomIconData(0xe816);
|
||||
static const IconData thumbs_up = _CustomIconData(0xe817);
|
||||
static const IconData thumbs_up_fill = _CustomIconData(0xe818);
|
||||
static const IconData thumbs_up_line = _CustomIconData(0xe819);
|
||||
static const IconData thumbs_up_outline = _CustomIconData(0xe81a);
|
||||
static const IconData topic_tag = _CustomIconData(0xe81b);
|
||||
static const IconData touch_app_rotate_270 = _CustomIconData(0xe81c);
|
||||
static const IconData view_headline_rotate_90 = _CustomIconData(0xe81d);
|
||||
static const IconData watch_later = _CustomIconData(0xe81e);
|
||||
static const IconData ai_circle = _CustomIconData(0xe800);
|
||||
static const IconData coin = _CustomIconData(0xe801);
|
||||
static const IconData dm_off = _CustomIconData(0xe802);
|
||||
static const IconData dm_on = _CustomIconData(0xe803);
|
||||
static const IconData dm_settings = _CustomIconData(0xe804);
|
||||
static const IconData dyn = _CustomIconData(0xe805);
|
||||
static const IconData fav = _CustomIconData(0xe806);
|
||||
static const IconData flip_rotate_90 = _CustomIconData(0xe807);
|
||||
static const IconData identifier_circle = _CustomIconData(0xe808);
|
||||
static const IconData live_reserve = _CustomIconData(0xe809);
|
||||
static const IconData open_in_full_rotate_45 = _CustomIconData(0xe80a);
|
||||
static const IconData player_dm_tip_back = _CustomIconData(0xe80b);
|
||||
static const IconData player_dm_tip_copy = _CustomIconData(0xe80c);
|
||||
static const IconData player_dm_tip_like = _CustomIconData(0xe80d);
|
||||
static const IconData player_dm_tip_like_solid = _CustomIconData(0xe80e);
|
||||
static const IconData player_dm_tip_recall = _CustomIconData(0xe80f);
|
||||
static const IconData repeat_rounded_rotate_90 = _CustomIconData(0xe810);
|
||||
static const IconData share = _CustomIconData(0xe811);
|
||||
static const IconData share_line = _CustomIconData(0xe812);
|
||||
static const IconData share_node = _CustomIconData(0xe813);
|
||||
static const IconData shield_play_arrow = _CustomIconData(0xe814);
|
||||
static const IconData shield_published = _CustomIconData(0xe815);
|
||||
static const IconData shield_reply = _CustomIconData(0xe816);
|
||||
static const IconData shopping_bag_not_interested = _CustomIconData(0xe817);
|
||||
static const IconData splitscreen_rotate_90 = _CustomIconData(0xe818);
|
||||
static const IconData star_favorite_line = _CustomIconData(0xe819);
|
||||
static const IconData star_favorite_solid = _CustomIconData(0xe81a);
|
||||
static const IconData thumbs_down = _CustomIconData(0xe81b);
|
||||
static const IconData thumbs_down_outline = _CustomIconData(0xe81c);
|
||||
static const IconData thumbs_up = _CustomIconData(0xe81d);
|
||||
static const IconData thumbs_up_fill = _CustomIconData(0xe81e);
|
||||
static const IconData thumbs_up_line = _CustomIconData(0xe81f);
|
||||
static const IconData thumbs_up_outline = _CustomIconData(0xe820);
|
||||
static const IconData topic_tag = _CustomIconData(0xe821);
|
||||
static const IconData touch_app_rotate_270 = _CustomIconData(0xe822);
|
||||
static const IconData view_headline_rotate_90 = _CustomIconData(0xe823);
|
||||
static const IconData watch_later = _CustomIconData(0xe824);
|
||||
}
|
||||
|
||||
class _CustomIconData extends IconData {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/http/user.dart';
|
||||
import 'package:PiliPlus/http/video.dart';
|
||||
import 'package:PiliPlus/models/common/account_type.dart';
|
||||
@@ -52,13 +53,7 @@ class VideoPopupMenu extends StatelessWidget {
|
||||
if (videoItem.bvid?.isNotEmpty == true) ...[
|
||||
_VideoCustomAction(
|
||||
videoItem.bvid!,
|
||||
const Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
Icon(MdiIcons.identifier, size: 16),
|
||||
Icon(MdiIcons.circleOutline, size: 16),
|
||||
],
|
||||
),
|
||||
const Icon(CustomIcons.identifier_circle, size: 16),
|
||||
() => Utils.copyText(videoItem.bvid!),
|
||||
),
|
||||
_VideoCustomAction(
|
||||
@@ -69,30 +64,7 @@ class VideoPopupMenu extends StatelessWidget {
|
||||
if (videoItem.cid != null && Pref.enableAi)
|
||||
_VideoCustomAction(
|
||||
'AI总结',
|
||||
const Stack(
|
||||
alignment: Alignment.center,
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
Icon(Icons.circle_outlined, size: 16),
|
||||
ExcludeSemantics(
|
||||
child: Text(
|
||||
'AI',
|
||||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
height: 1,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
strutStyle: StrutStyle(
|
||||
fontSize: 10,
|
||||
height: 1,
|
||||
leading: 0,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
textScaler: TextScaler.noScaling,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const Icon(CustomIcons.ai_circle, size: 16),
|
||||
() async {
|
||||
final res = await UgcIntroController.getAiConclusion(
|
||||
videoItem.bvid!,
|
||||
|
||||
Reference in New Issue
Block a user