From cdc17203586f610ccc990bcdf88c6fef30089722 Mon Sep 17 00:00:00 2001 From: dom Date: Thu, 2 Apr 2026 17:56:43 +0800 Subject: [PATCH] Reformat Signed-off-by: dom --- lib/models/common/account_type.dart | 2 +- lib/models/common/audio_normalization.dart | 2 +- lib/models/common/avatar_badge_type.dart | 2 +- lib/models/common/bar_hide_type.dart | 2 +- lib/models/common/dm_block_type.dart | 2 +- lib/models/common/dynamic/dynamic_badge_mode.dart | 2 +- lib/models/common/dynamic/dynamics_type.dart | 2 +- lib/models/common/dynamic/up_panel_position.dart | 2 +- lib/models/common/episode_panel_type.dart | 2 +- lib/models/common/fav_order_type.dart | 2 +- lib/models/common/fav_type.dart | 2 +- lib/models/common/follow_order_type.dart | 2 +- lib/models/common/home_tab_type.dart | 2 +- lib/models/common/later_view_type.dart | 2 +- lib/models/common/live/live_contribution_rank_type.dart | 2 +- lib/models/common/member/contribute_type.dart | 2 +- lib/models/common/member/tab_type.dart | 2 +- lib/models/common/msg/msg_unread_type.dart | 2 +- lib/models/common/pgc_review_type.dart | 4 ++-- lib/models/common/rank_type.dart | 2 +- lib/models/common/reply/reply_option_type.dart | 2 +- lib/models/common/reply/reply_sort_type.dart | 2 +- lib/models/common/search/article_search_type.dart | 4 ++-- lib/models/common/search/search_type.dart | 2 +- lib/models/common/search/user_search_type.dart | 4 ++-- lib/models/common/search/video_search_type.dart | 8 ++++---- lib/models/common/setting_type.dart | 2 +- lib/models/common/sponsor_block/action_type.dart | 2 +- lib/models/common/sponsor_block/skip_type.dart | 2 +- lib/models/common/stat_type.dart | 2 +- lib/models/common/super_resolution_type.dart | 2 +- lib/models/common/theme/theme_type.dart | 2 +- lib/models/common/video/audio_quality.dart | 2 +- lib/models/common/video/cdn_type.dart | 2 +- lib/models/common/video/live_quality.dart | 2 +- lib/models/common/video/source_type.dart | 2 +- lib/models/common/video/subtitle_pref_type.dart | 2 +- lib/models/common/video/video_decode_type.dart | 2 +- lib/models/common/video/video_quality.dart | 2 +- lib/models/common/video/video_type.dart | 2 +- lib/models/common/webview_menu_type.dart | 2 +- lib/models_new/download/bili_download_entry_info.dart | 2 +- lib/plugin/pl_player/models/audio_output_type.dart | 2 +- lib/plugin/pl_player/models/bottom_progress_behavior.dart | 2 +- lib/plugin/pl_player/models/fullscreen_mode.dart | 2 +- lib/plugin/pl_player/models/hwdec_type.dart | 2 +- lib/plugin/pl_player/models/play_repeat.dart | 2 +- lib/plugin/pl_player/models/play_speed.dart | 2 +- lib/plugin/pl_player/models/play_status.dart | 2 +- lib/plugin/pl_player/models/video_fit_type.dart | 2 +- lib/plugin/pl_player/widgets/mpv_convert_webp.dart | 2 +- lib/services/shutdown_timer_service.dart | 2 +- 52 files changed, 58 insertions(+), 58 deletions(-) diff --git a/lib/models/common/account_type.dart b/lib/models/common/account_type.dart index 475f9917a..ddd81b5e2 100644 --- a/lib/models/common/account_type.dart +++ b/lib/models/common/account_type.dart @@ -2,7 +2,7 @@ enum AccountType { main('主账号'), heartbeat('记录观看'), recommend('推荐'), - video('视频取流') + video('视频取流'), ; final String title; diff --git a/lib/models/common/audio_normalization.dart b/lib/models/common/audio_normalization.dart index e81bd72e6..79ea9f648 100644 --- a/lib/models/common/audio_normalization.dart +++ b/lib/models/common/audio_normalization.dart @@ -3,7 +3,7 @@ enum AudioNormalization { // ref https://github.com/KRTirtho/spotube/commit/da10ab2e291d4ba4d3082b9a6ae535639fb8f1b7 dynaudnorm('预设 dynaudnorm', 'dynaudnorm=g=5:f=250:r=0.9:p=0.5'), loudnorm('预设 loudnorm', 'loudnorm=I=-16:LRA=11:TP=-1.5'), - custom('自定义参数') + custom('自定义参数'), ; final String title; diff --git a/lib/models/common/avatar_badge_type.dart b/lib/models/common/avatar_badge_type.dart index 7baecf179..bb5432eb8 100644 --- a/lib/models/common/avatar_badge_type.dart +++ b/lib/models/common/avatar_badge_type.dart @@ -4,7 +4,7 @@ enum BadgeType { none(), vip('大会员'), person('认证个人', Color(0xFFFFCC00)), - institution('认证机构', Colors.lightBlueAccent) + institution('认证机构', Colors.lightBlueAccent), ; final String? desc; diff --git a/lib/models/common/bar_hide_type.dart b/lib/models/common/bar_hide_type.dart index 243083928..db9fffed4 100644 --- a/lib/models/common/bar_hide_type.dart +++ b/lib/models/common/bar_hide_type.dart @@ -2,7 +2,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart'; enum BarHideType with EnumWithLabel { instant('即时'), - sync('同步') + sync('同步'), ; @override diff --git a/lib/models/common/dm_block_type.dart b/lib/models/common/dm_block_type.dart index 53adb78dc..cee31e94b 100644 --- a/lib/models/common/dm_block_type.dart +++ b/lib/models/common/dm_block_type.dart @@ -1,7 +1,7 @@ enum DmBlockType { keyword('关键词'), regex('正则'), - uid('用户') + uid('用户'), ; final String label; diff --git a/lib/models/common/dynamic/dynamic_badge_mode.dart b/lib/models/common/dynamic/dynamic_badge_mode.dart index 2beabe1bc..9ce018d6b 100644 --- a/lib/models/common/dynamic/dynamic_badge_mode.dart +++ b/lib/models/common/dynamic/dynamic_badge_mode.dart @@ -1,7 +1,7 @@ enum DynamicBadgeMode { hidden('隐藏'), point('红点'), - number('数字') + number('数字'), ; final String desc; diff --git a/lib/models/common/dynamic/dynamics_type.dart b/lib/models/common/dynamic/dynamics_type.dart index 7065cb0dc..a2c397422 100644 --- a/lib/models/common/dynamic/dynamics_type.dart +++ b/lib/models/common/dynamic/dynamics_type.dart @@ -3,7 +3,7 @@ enum DynamicsTabType { video('投稿'), pgc('番剧'), article('专栏'), - up('UP') + up('UP'), ; final String label; diff --git a/lib/models/common/dynamic/up_panel_position.dart b/lib/models/common/dynamic/up_panel_position.dart index 0fc276cf5..d7697e781 100644 --- a/lib/models/common/dynamic/up_panel_position.dart +++ b/lib/models/common/dynamic/up_panel_position.dart @@ -3,7 +3,7 @@ enum UpPanelPosition { leftFixed('左侧常驻'), rightFixed('右侧常驻'), leftDrawer('左侧抽屉'), - rightDrawer('右侧抽屉') + rightDrawer('右侧抽屉'), ; final String label; diff --git a/lib/models/common/episode_panel_type.dart b/lib/models/common/episode_panel_type.dart index da6135452..d19cfe547 100644 --- a/lib/models/common/episode_panel_type.dart +++ b/lib/models/common/episode_panel_type.dart @@ -1,7 +1,7 @@ enum EpisodeType { part('分P'), season('合集'), - pgc('剧集') + pgc('剧集'), ; final String title; diff --git a/lib/models/common/fav_order_type.dart b/lib/models/common/fav_order_type.dart index 1c1e63907..e6f7b4d64 100644 --- a/lib/models/common/fav_order_type.dart +++ b/lib/models/common/fav_order_type.dart @@ -1,7 +1,7 @@ enum FavOrderType { mtime('最近收藏'), view('最多播放'), - pubtime('最近投稿') + pubtime('最近投稿'), ; final String label; diff --git a/lib/models/common/fav_type.dart b/lib/models/common/fav_type.dart index 7d4aebfc3..b0f03f0a1 100644 --- a/lib/models/common/fav_type.dart +++ b/lib/models/common/fav_type.dart @@ -13,7 +13,7 @@ enum FavTabType { article('专栏', FavArticlePage()), note('笔记', FavNotePage()), topic('话题', FavTopicPage()), - cheese('课堂', FavCheesePage()) + cheese('课堂', FavCheesePage()), ; final String title; diff --git a/lib/models/common/follow_order_type.dart b/lib/models/common/follow_order_type.dart index 0af6718fd..bcaae6e54 100644 --- a/lib/models/common/follow_order_type.dart +++ b/lib/models/common/follow_order_type.dart @@ -1,6 +1,6 @@ enum FollowOrderType { def('', '最近关注'), - attention('attention', '最常访问') + attention('attention', '最常访问'), ; final String type; diff --git a/lib/models/common/home_tab_type.dart b/lib/models/common/home_tab_type.dart index e168616e7..5f124ddcd 100644 --- a/lib/models/common/home_tab_type.dart +++ b/lib/models/common/home_tab_type.dart @@ -19,7 +19,7 @@ enum HomeTabType implements EnumWithLabel { hot('热门'), rank('分区'), bangumi('番剧'), - cinema('影视') + cinema('影视'), ; @override diff --git a/lib/models/common/later_view_type.dart b/lib/models/common/later_view_type.dart index 1012e1222..bcd7be2fa 100644 --- a/lib/models/common/later_view_type.dart +++ b/lib/models/common/later_view_type.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; enum LaterViewType { all(0, '全部'), // toView(1, '未看'), - unfinished(2, '未看完') + unfinished(2, '未看完'), // viewed(3, '已看完'), ; diff --git a/lib/models/common/live/live_contribution_rank_type.dart b/lib/models/common/live/live_contribution_rank_type.dart index 0a688eb10..ad5a40a8c 100644 --- a/lib/models/common/live/live_contribution_rank_type.dart +++ b/lib/models/common/live/live_contribution_rank_type.dart @@ -4,7 +4,7 @@ enum LiveContributionRankType { online_rank('在线榜', 'contribution_rank'), daily_rank('日榜', 'today_rank'), weekly_rank('周榜', 'current_week_rank'), - monthly_rank('月榜', 'current_month_rank') + monthly_rank('月榜', 'current_month_rank'), ; final String title; diff --git a/lib/models/common/member/contribute_type.dart b/lib/models/common/member/contribute_type.dart index e0076673a..e00eb49ea 100644 --- a/lib/models/common/member/contribute_type.dart +++ b/lib/models/common/member/contribute_type.dart @@ -6,7 +6,7 @@ enum ContributeType { season(Api.spaceSeason), series(Api.spaceSeries), bangumi(Api.spaceBangumi), - comic(Api.spaceComic) + comic(Api.spaceComic), ; final String api; diff --git a/lib/models/common/member/tab_type.dart b/lib/models/common/member/tab_type.dart index 7cb96a4fd..688e73c78 100644 --- a/lib/models/common/member/tab_type.dart +++ b/lib/models/common/member/tab_type.dart @@ -8,7 +8,7 @@ enum MemberTabType { favorite('收藏'), bangumi('番剧'), cheese('课堂'), - shop('小店') + shop('小店'), ; static bool showMemberShop = Pref.showMemberShop; diff --git a/lib/models/common/msg/msg_unread_type.dart b/lib/models/common/msg/msg_unread_type.dart index d0c88fe2a..3c05e4f57 100644 --- a/lib/models/common/msg/msg_unread_type.dart +++ b/lib/models/common/msg/msg_unread_type.dart @@ -3,7 +3,7 @@ enum MsgUnReadType { reply('回复我的'), at('@我'), like('收到的赞'), - sysMsg('系统通知') + sysMsg('系统通知'), ; final String title; diff --git a/lib/models/common/pgc_review_type.dart b/lib/models/common/pgc_review_type.dart index 4c9f6e63e..c99e50bb5 100644 --- a/lib/models/common/pgc_review_type.dart +++ b/lib/models/common/pgc_review_type.dart @@ -2,7 +2,7 @@ import 'package:PiliPlus/http/api.dart'; enum PgcReviewType { long(label: '长评', api: Api.pgcReviewL), - short(label: '短评', api: Api.pgcReviewS) + short(label: '短评', api: Api.pgcReviewS), ; final String label; @@ -15,7 +15,7 @@ enum PgcReviewType { enum PgcReviewSortType { def('默认', 0), - latest('最新', 1) + latest('最新', 1), ; final int sort; diff --git a/lib/models/common/rank_type.dart b/lib/models/common/rank_type.dart index 73fd8a176..c5fd54cb8 100644 --- a/lib/models/common/rank_type.dart +++ b/lib/models/common/rank_type.dart @@ -19,7 +19,7 @@ enum RankType { documentary('记录', seasonType: 3), movie('电影', seasonType: 2), tv('剧集', seasonType: 5), - variety('综艺', seasonType: 7) + variety('综艺', seasonType: 7), ; final String label; diff --git a/lib/models/common/reply/reply_option_type.dart b/lib/models/common/reply/reply_option_type.dart index 122231f53..b5ef8da74 100644 --- a/lib/models/common/reply/reply_option_type.dart +++ b/lib/models/common/reply/reply_option_type.dart @@ -4,7 +4,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart enum ReplyOptionType { allow('允许评论'), close('关闭评论'), - choose('精选评论') + choose('精选评论'), ; final String title; diff --git a/lib/models/common/reply/reply_sort_type.dart b/lib/models/common/reply/reply_sort_type.dart index 30612175f..74c4509a8 100644 --- a/lib/models/common/reply/reply_sort_type.dart +++ b/lib/models/common/reply/reply_sort_type.dart @@ -1,7 +1,7 @@ enum ReplySortType { time('最新评论', '最新'), hot('最热评论', '最热'), - select('精选评论', '精选') + select('精选评论', '精选'), ; final String title; diff --git a/lib/models/common/search/article_search_type.dart b/lib/models/common/search/article_search_type.dart index 29f8273e9..3a5f79077 100644 --- a/lib/models/common/search/article_search_type.dart +++ b/lib/models/common/search/article_search_type.dart @@ -3,7 +3,7 @@ enum ArticleOrderType { pubdate('最新发布'), click('最多点击'), attention('最多喜欢'), - scores('最多评论') + scores('最多评论'), ; String get order => name; @@ -20,7 +20,7 @@ enum ArticleZoneType { interest('兴趣', 29), novel('轻小说', 16), tech('科技', 17), - note('笔记', 41) + note('笔记', 41), ; final String label; diff --git a/lib/models/common/search/search_type.dart b/lib/models/common/search/search_type.dart index 72d91f73c..d56382bd6 100644 --- a/lib/models/common/search/search_type.dart +++ b/lib/models/common/search/search_type.dart @@ -18,7 +18,7 @@ enum SearchType { // 用户:bili_user bili_user('用户'), // 专栏:article - article('专栏') + article('专栏'), ; // 相簿:photo // photo diff --git a/lib/models/common/search/user_search_type.dart b/lib/models/common/search/user_search_type.dart index 28a03045d..d30c42e81 100644 --- a/lib/models/common/search/user_search_type.dart +++ b/lib/models/common/search/user_search_type.dart @@ -3,7 +3,7 @@ enum UserOrderType { fansDesc('粉丝数由高到低', 0, 'fans'), fansAsc('粉丝数由低到高', 1, 'fans'), levelDesc('Lv等级由高到低', 0, 'level'), - levelAsc('Lv等级由低到高', 1, 'level') + levelAsc('Lv等级由低到高', 1, 'level'), ; final String label; @@ -16,7 +16,7 @@ enum UserType { all('全部用户'), up('UP主'), common('普通用户'), - verified('认证用户') + verified('认证用户'), ; final String label; diff --git a/lib/models/common/search/video_search_type.dart b/lib/models/common/search/video_search_type.dart index bee53bbf0..b16636912 100644 --- a/lib/models/common/search/video_search_type.dart +++ b/lib/models/common/search/video_search_type.dart @@ -2,7 +2,7 @@ enum VideoPubTimeType { all('不限'), day('最近一天'), week('最近一周'), - halfYear('最近半年') + halfYear('最近半年'), ; final String label; @@ -14,7 +14,7 @@ enum VideoDurationType { tenMins('0-10分钟'), halfHour('10-30分钟'), hour('30-60分钟'), - hourPlus('60分钟+') + hourPlus('60分钟+'), ; final String label; @@ -43,7 +43,7 @@ enum VideoZoneType { cinephile('影视', tids: 181), documentary('记录', tids: 177), movie('电影', tids: 23), - tv('电视', tids: 11) + tv('电视', tids: 11), ; final String label; @@ -58,7 +58,7 @@ enum ArchiveFilterType { pubdate('新发布'), dm('弹幕多'), stow('收藏多'), - scores('评论多') + scores('评论多'), ; // 专栏 // attention('最多喜欢'), diff --git a/lib/models/common/setting_type.dart b/lib/models/common/setting_type.dart index 882e3b211..366623f60 100644 --- a/lib/models/common/setting_type.dart +++ b/lib/models/common/setting_type.dart @@ -6,7 +6,7 @@ enum SettingType { styleSetting('外观设置'), extraSetting('其它设置'), webdavSetting('WebDAV 设置'), - about('关于') + about('关于'), ; final String title; diff --git a/lib/models/common/sponsor_block/action_type.dart b/lib/models/common/sponsor_block/action_type.dart index 5efd5d5c6..6a73a1337 100644 --- a/lib/models/common/sponsor_block/action_type.dart +++ b/lib/models/common/sponsor_block/action_type.dart @@ -2,7 +2,7 @@ enum ActionType { skip('跳过'), mute('静音'), full('整个视频'), - poi('精彩时刻') + poi('精彩时刻'), ; final String title; diff --git a/lib/models/common/sponsor_block/skip_type.dart b/lib/models/common/sponsor_block/skip_type.dart index 63616264a..cbbcb5320 100644 --- a/lib/models/common/sponsor_block/skip_type.dart +++ b/lib/models/common/sponsor_block/skip_type.dart @@ -5,7 +5,7 @@ enum SkipType implements EnumWithLabel { skipOnce('跳过一次'), skipManually('手动跳过'), showOnly('仅显示'), - disable('禁用') + disable('禁用'), ; @override diff --git a/lib/models/common/stat_type.dart b/lib/models/common/stat_type.dart index c7a7eb9bc..dbab93694 100644 --- a/lib/models/common/stat_type.dart +++ b/lib/models/common/stat_type.dart @@ -7,7 +7,7 @@ enum StatType { reply(Icons.comment_outlined, '评论'), follow(Icons.favorite_border, '关注'), play(Icons.play_circle_outlined, '播放'), - listen(Icons.headset_outlined, '播放') + listen(Icons.headset_outlined, '播放'), ; final IconData iconData; diff --git a/lib/models/common/super_resolution_type.dart b/lib/models/common/super_resolution_type.dart index 0ca532fc0..792ac9f8d 100644 --- a/lib/models/common/super_resolution_type.dart +++ b/lib/models/common/super_resolution_type.dart @@ -3,7 +3,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart'; enum SuperResolutionType with EnumWithLabel { disable('禁用'), efficiency('效率'), - quality('画质') + quality('画质'), ; @override diff --git a/lib/models/common/theme/theme_type.dart b/lib/models/common/theme/theme_type.dart index e3aefe1de..751695bfd 100644 --- a/lib/models/common/theme/theme_type.dart +++ b/lib/models/common/theme/theme_type.dart @@ -4,7 +4,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart enum ThemeType { light('浅色'), dark('深色'), - system('跟随系统') + system('跟随系统'), ; final String desc; diff --git a/lib/models/common/video/audio_quality.dart b/lib/models/common/video/audio_quality.dart index f15f5f898..c721ea6b3 100644 --- a/lib/models/common/video/audio_quality.dart +++ b/lib/models/common/video/audio_quality.dart @@ -7,7 +7,7 @@ enum AudioQuality { dolby_30255(30255, '杜比全景声'), k192(30280, '192K'), k132(30232, '132K'), - k64(30216, '64K') + k64(30216, '64K'), ; final int code; diff --git a/lib/models/common/video/cdn_type.dart b/lib/models/common/video/cdn_type.dart index 55326f9e9..8c8fe0820 100644 --- a/lib/models/common/video/cdn_type.dart +++ b/lib/models/common/video/cdn_type.dart @@ -24,7 +24,7 @@ enum CDNService { aliov('aliov(阿里云海外)', 'upos-sz-mirroraliov.bilivideo.com'), cosov('cosov(腾讯云海外)', 'upos-sz-mirrorcosov.bilivideo.com'), hwov('hwov(华为云海外)', 'upos-sz-mirrorhwov.bilivideo.com'), - hk_bcache('hk_bcache(Bilibili海外)', 'cn-hk-eq-bcache-01.bilivideo.com') + hk_bcache('hk_bcache(Bilibili海外)', 'cn-hk-eq-bcache-01.bilivideo.com'), ; final String desc; diff --git a/lib/models/common/video/live_quality.dart b/lib/models/common/video/live_quality.dart index bdcbfdef9..046c56616 100644 --- a/lib/models/common/video/live_quality.dart +++ b/lib/models/common/video/live_quality.dart @@ -7,7 +7,7 @@ enum LiveQuality { bluRay(400, '蓝光'), superHD(250, '超清'), smooth(150, '高清'), - flunt(80, '流畅') + flunt(80, '流畅'), ; final int code; diff --git a/lib/models/common/video/source_type.dart b/lib/models/common/video/source_type.dart index 19d9a77ad..dea3e5268 100644 --- a/lib/models/common/video/source_type.dart +++ b/lib/models/common/video/source_type.dart @@ -26,7 +26,7 @@ enum SourceType { extraId: 4, playlistSource: PlaylistSource.MEDIA_LIST, ), - file + file, ; final int? mediaType; diff --git a/lib/models/common/video/subtitle_pref_type.dart b/lib/models/common/video/subtitle_pref_type.dart index 3fc75216b..265cdb08b 100644 --- a/lib/models/common/video/subtitle_pref_type.dart +++ b/lib/models/common/video/subtitle_pref_type.dart @@ -2,7 +2,7 @@ enum SubtitlePrefType { off('默认不显示字幕'), on('优先选择非自动生成(ai)字幕'), withoutAi('跳过自动生成(ai)字幕,选择第一个可用字幕'), - auto('静音时等同第二项,非静音时等同第三项') + auto('静音时等同第二项,非静音时等同第三项'), ; final String desc; diff --git a/lib/models/common/video/video_decode_type.dart b/lib/models/common/video/video_decode_type.dart index f2f57d55a..f17ec8c67 100644 --- a/lib/models/common/video/video_decode_type.dart +++ b/lib/models/common/video/video_decode_type.dart @@ -4,7 +4,7 @@ enum VideoDecodeFormatType { DVH1(['dvh1']), AV1(['av01']), HEVC(['hev1', 'hvc1']), - AVC(['avc1']) + AVC(['avc1']), ; String get description => name; diff --git a/lib/models/common/video/video_quality.dart b/lib/models/common/video/video_quality.dart index bd91f362e..98329bde2 100644 --- a/lib/models/common/video/video_quality.dart +++ b/lib/models/common/video/video_quality.dart @@ -11,7 +11,7 @@ enum VideoQuality { high720(64, '720P 准高清', '720P'), clear480(32, '480P 标清', '480P'), fluent360(16, '360P 流畅', '360P'), - speed240(6, '240P 极速', '240P') + speed240(6, '240P 极速', '240P'), ; final int code; diff --git a/lib/models/common/video/video_type.dart b/lib/models/common/video/video_type.dart index d56476970..f5306f059 100644 --- a/lib/models/common/video/video_type.dart +++ b/lib/models/common/video/video_type.dart @@ -13,7 +13,7 @@ enum VideoType { type: 10, replyType: 33, api: Api.pugvUrl, - ) + ), ; final int type; diff --git a/lib/models/common/webview_menu_type.dart b/lib/models/common/webview_menu_type.dart index 4758938e9..8fd0a042f 100644 --- a/lib/models/common/webview_menu_type.dart +++ b/lib/models/common/webview_menu_type.dart @@ -4,7 +4,7 @@ enum WebviewMenuItem { openInBrowser('浏览器中打开'), clearCache('清除缓存'), resetCookie('重新设置Cookie'), - goBack('返回') + goBack('返回'), ; final String title; diff --git a/lib/models_new/download/bili_download_entry_info.dart b/lib/models_new/download/bili_download_entry_info.dart index 3e6fe5ebf..5246b9c39 100644 --- a/lib/models_new/download/bili_download_entry_info.dart +++ b/lib/models_new/download/bili_download_entry_info.dart @@ -395,7 +395,7 @@ enum DownloadStatus { failDanmaku('获取弹幕失败'), failPlayUrl('获取播放地址失败'), pause('暂停中'), - wait('等待中') + wait('等待中'), ; final String message; diff --git a/lib/plugin/pl_player/models/audio_output_type.dart b/lib/plugin/pl_player/models/audio_output_type.dart index 281e19024..ad8fa6179 100644 --- a/lib/plugin/pl_player/models/audio_output_type.dart +++ b/lib/plugin/pl_player/models/audio_output_type.dart @@ -3,7 +3,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart'; enum AudioOutput implements EnumWithLabel { opensles('OpenSL ES'), aaudio('AAudio'), - audiotrack('AudioTrack') + audiotrack('AudioTrack'), ; static final defaultValue = values.map((e) => e.name).join(','); diff --git a/lib/plugin/pl_player/models/bottom_progress_behavior.dart b/lib/plugin/pl_player/models/bottom_progress_behavior.dart index d0c93e916..8db45c63a 100644 --- a/lib/plugin/pl_player/models/bottom_progress_behavior.dart +++ b/lib/plugin/pl_player/models/bottom_progress_behavior.dart @@ -2,7 +2,7 @@ enum BtmProgressBehavior { alwaysShow('始终展示'), alwaysHide('始终隐藏'), onlyShowFullScreen('仅全屏时展示'), - onlyHideFullScreen('仅全屏时隐藏') + onlyHideFullScreen('仅全屏时隐藏'), ; final String desc; diff --git a/lib/plugin/pl_player/models/fullscreen_mode.dart b/lib/plugin/pl_player/models/fullscreen_mode.dart index 968d8260a..491555176 100644 --- a/lib/plugin/pl_player/models/fullscreen_mode.dart +++ b/lib/plugin/pl_player/models/fullscreen_mode.dart @@ -13,7 +13,7 @@ enum FullScreenMode { // 屏幕长宽比 < kScreenRatio 或为竖屏视频时竖屏,否则横屏 ratio('屏幕长宽比<$kScreenRatio或为竖屏视频时竖屏,否则横屏'), // 强制重力转屏(仅安卓) - gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)') + gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)'), ; final String desc; diff --git a/lib/plugin/pl_player/models/hwdec_type.dart b/lib/plugin/pl_player/models/hwdec_type.dart index 8339170f7..ae1b4671d 100644 --- a/lib/plugin/pl_player/models/hwdec_type.dart +++ b/lib/plugin/pl_player/models/hwdec_type.dart @@ -31,7 +31,7 @@ enum HwDecType { amf('amf', 'AMF (AMD独占)'), amfCopy('amf-copy', 'AMF (AMD独占) (非直通)'), qsv('qsv', 'Quick Sync Video (Intel独占)'), - qsvCopy('qsv-copy', 'Quick Sync Video (Intel独占) (非直通)') + qsvCopy('qsv-copy', 'Quick Sync Video (Intel独占) (非直通)'), ; final String hwdec; diff --git a/lib/plugin/pl_player/models/play_repeat.dart b/lib/plugin/pl_player/models/play_repeat.dart index 44be4faaf..8070a839b 100644 --- a/lib/plugin/pl_player/models/play_repeat.dart +++ b/lib/plugin/pl_player/models/play_repeat.dart @@ -5,7 +5,7 @@ enum PlayRepeat implements EnumWithLabel { listOrder('顺序播放'), singleCycle('单个循环'), listCycle('列表循环'), - autoPlayRelated('自动连播') + autoPlayRelated('自动连播'), ; @override diff --git a/lib/plugin/pl_player/models/play_speed.dart b/lib/plugin/pl_player/models/play_speed.dart index 7b508ee83..4a4dfc5a2 100644 --- a/lib/plugin/pl_player/models/play_speed.dart +++ b/lib/plugin/pl_player/models/play_speed.dart @@ -8,7 +8,7 @@ enum PlaySpeed { onePointSevenFive(1.75), two(2.0), - three(3.0) + three(3.0), ; final double value; diff --git a/lib/plugin/pl_player/models/play_status.dart b/lib/plugin/pl_player/models/play_status.dart index f0a5a9d0a..d8309eda7 100644 --- a/lib/plugin/pl_player/models/play_status.dart +++ b/lib/plugin/pl_player/models/play_status.dart @@ -3,7 +3,7 @@ import 'package:get/get.dart'; enum PlayerStatus { completed, playing, - paused + paused, ; bool get isCompleted => this == PlayerStatus.completed; diff --git a/lib/plugin/pl_player/models/video_fit_type.dart b/lib/plugin/pl_player/models/video_fit_type.dart index 96b922dd6..219920eab 100644 --- a/lib/plugin/pl_player/models/video_fit_type.dart +++ b/lib/plugin/pl_player/models/video_fit_type.dart @@ -10,7 +10,7 @@ enum VideoFitType { none('原始', boxFit: BoxFit.none), scaleDown('限制', boxFit: BoxFit.scaleDown), ratio_4x3('4:3', aspectRatio: 4 / 3), - ratio_16x9('16:9', aspectRatio: Style.aspectRatio16x9) + ratio_16x9('16:9', aspectRatio: Style.aspectRatio16x9), ; final String desc; diff --git a/lib/plugin/pl_player/widgets/mpv_convert_webp.dart b/lib/plugin/pl_player/widgets/mpv_convert_webp.dart index 716191b47..f6911bc69 100644 --- a/lib/plugin/pl_player/widgets/mpv_convert_webp.dart +++ b/lib/plugin/pl_player/widgets/mpv_convert_webp.dart @@ -150,7 +150,7 @@ enum WebpPreset { photo('photo', '照片', '户外摄影,自然光环境'), drawing('drawing', '绘图', '手绘或线稿,高对比度细节'), icon('icon', '图标', '小型彩色图像'), - text('text', '文本', '文字类') + text('text', '文本', '文字类'), ; final String flag; diff --git a/lib/services/shutdown_timer_service.dart b/lib/services/shutdown_timer_service.dart index 53b17b583..21ff07774 100644 --- a/lib/services/shutdown_timer_service.dart +++ b/lib/services/shutdown_timer_service.dart @@ -13,7 +13,7 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; enum _ShutdownType with EnumWithLabel { pause('暂停视频'), - exit('退出APP') + exit('退出APP'), ; @override