mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-06 01:00:18 +08:00
@@ -1,3 +1,4 @@
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/http/fav.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/http/user.dart';
|
||||
@@ -40,45 +41,40 @@ class MineController extends CommonDataController<FavFolderData, FavFolderData>
|
||||
static RxBool anonymity =
|
||||
(Accounts.account.isNotEmpty && !Accounts.heartbeat.isLogin).obs;
|
||||
|
||||
late final list =
|
||||
<({IconData icon, double size, String title, VoidCallback onTap})>[
|
||||
(
|
||||
size: 23,
|
||||
icon: MdiIcons.folderDownloadOutline,
|
||||
title: '离线缓存',
|
||||
onTap: () => Get.toNamed('/download'),
|
||||
),
|
||||
(
|
||||
size: 23,
|
||||
icon: Icons.history,
|
||||
title: '观看记录',
|
||||
onTap: () {
|
||||
if (isLogin) {
|
||||
Get.toNamed('/history');
|
||||
}
|
||||
},
|
||||
),
|
||||
(
|
||||
size: 20,
|
||||
icon: Icons.subscriptions_outlined,
|
||||
title: '我的订阅',
|
||||
onTap: () {
|
||||
if (isLogin) {
|
||||
Get.toNamed('/subscription');
|
||||
}
|
||||
},
|
||||
),
|
||||
(
|
||||
size: 21,
|
||||
icon: Icons.watch_later_outlined,
|
||||
title: '稍后再看',
|
||||
onTap: () {
|
||||
if (isLogin) {
|
||||
Get.toNamed('/later');
|
||||
}
|
||||
},
|
||||
),
|
||||
];
|
||||
late final list = <({IconData icon, String title, VoidCallback onTap})>[
|
||||
(
|
||||
icon: CustomIcons.folderDownloadOutline,
|
||||
title: '离线缓存',
|
||||
onTap: () => Get.toNamed('/download'),
|
||||
),
|
||||
(
|
||||
icon: CustomIcons.history,
|
||||
title: '观看记录',
|
||||
onTap: () {
|
||||
if (isLogin) {
|
||||
Get.toNamed('/history');
|
||||
}
|
||||
},
|
||||
),
|
||||
(
|
||||
icon: CustomIcons.subscriptions_outlined,
|
||||
title: '我的订阅',
|
||||
onTap: () {
|
||||
if (isLogin) {
|
||||
Get.toNamed('/subscription');
|
||||
}
|
||||
},
|
||||
),
|
||||
(
|
||||
icon: CustomIcons.watch_later_outlined,
|
||||
title: '稍后再看',
|
||||
onTap: () {
|
||||
if (isLogin) {
|
||||
Get.toNamed('/later');
|
||||
}
|
||||
},
|
||||
),
|
||||
];
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
|
||||
@@ -119,7 +119,7 @@ class _MediaPageState extends CommonPageState<MinePage>
|
||||
mainAxisSize: .min,
|
||||
mainAxisAlignment: .center,
|
||||
children: [
|
||||
Icon(size: e.size, e.icon, color: primary),
|
||||
Icon(e.icon, color: primary),
|
||||
Text(
|
||||
e.title,
|
||||
style: const TextStyle(fontSize: 13),
|
||||
|
||||
Reference in New Issue
Block a user