Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-26 18:16:32 +08:00
parent fb8a06787b
commit 91627df804
8 changed files with 44 additions and 44 deletions

View File

@@ -95,7 +95,7 @@ class _FavPanelState extends State<FavPanel> {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final theme = Theme.of(context).colorScheme;
return Column(
children: [
AppBar(
@@ -117,7 +117,7 @@ class _FavPanelState extends State<FavPanel> {
}),
icon: Icon(
Icons.add,
color: theme.colorScheme.primary,
color: theme.primary,
),
label: const Text('新建收藏夹'),
style: TextButton.styleFrom(
@@ -134,7 +134,7 @@ class _FavPanelState extends State<FavPanel> {
Expanded(child: _buildBody),
Divider(
height: 1,
color: theme.disabledColor.withValues(alpha: 0.08),
color: theme.outline.withValues(alpha: 0.1),
),
Padding(
padding: EdgeInsets.only(
@@ -144,39 +144,25 @@ class _FavPanelState extends State<FavPanel> {
bottom: MediaQuery.viewPaddingOf(context).bottom + 12,
),
child: Row(
spacing: 25,
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
TextButton(
children: [
FilledButton.tonal(
onPressed: Get.back,
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(
horizontal: 20,
vertical: 10,
),
visualDensity: const VisualDensity(
horizontal: -1,
vertical: -2,
),
foregroundColor: theme.colorScheme.outline,
backgroundColor: theme.colorScheme.onInverseSurface,
style: FilledButton.styleFrom(
visualDensity: VisualDensity.compact,
foregroundColor: theme.outline,
backgroundColor: theme.onInverseSurface,
),
child: const Text('取消'),
),
const SizedBox(width: 25),
FilledButton.tonal(
onPressed: () {
feedBack();
widget.ctr.actionFavVideo();
},
style: FilledButton.styleFrom(
padding: const EdgeInsets.symmetric(
horizontal: 20,
vertical: 10,
),
visualDensity: const VisualDensity(
horizontal: -1,
vertical: -2,
),
visualDensity: VisualDensity.compact,
),
child: const Text('完成'),
),