mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
@@ -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('完成'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user