feat: 视频操作

This commit is contained in:
guozhigq
2023-05-12 00:03:10 +08:00
parent e426236741
commit 7bcdd209ba
10 changed files with 447 additions and 52 deletions

View File

@ -10,12 +10,12 @@ class MediaController extends GetxController {
{
'icon': Icons.file_download_outlined,
'title': '离线缓存',
'onTap': () => Get.toNamed('/fav'),
'onTap': () {},
},
{
'icon': Icons.history,
'title': '观看记录',
'onTap': () => Get.toNamed('/fav'),
'onTap': () {},
},
{
'icon': Icons.star_border,
@ -24,8 +24,8 @@ class MediaController extends GetxController {
},
{
'icon': Icons.watch_later_outlined,
'title': '再看',
'onTap': () => Get.toNamed('/fav'),
'title': '再看',
'onTap': () => {},
},
];

View File

@ -56,8 +56,13 @@ class _MediaPageState extends State<MediaPage>
color: primary,
),
),
contentPadding:
const EdgeInsets.only(left: 15, top: 2, bottom: 2),
minLeadingWidth: 0,
title: Text(i['title']),
title: Text(
i['title'],
style: const TextStyle(fontSize: 15),
),
),
],
favFolder()
@ -105,13 +110,11 @@ class _MediaPageState extends State<MediaPage>
),
),
),
trailing: Padding(
padding: const EdgeInsets.only(right: 10),
child: Text(
'查看全部',
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
color: Theme.of(context).colorScheme.outline),
trailing: IconButton(
onPressed: () => _mediaController.queryFavFolder(),
icon: const Icon(
Icons.refresh,
size: 20,
),
),
),