mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -11,14 +11,14 @@ import 'package:PiliPlus/utils/grid.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class MusicRecommandPage extends StatefulWidget {
|
||||
const MusicRecommandPage({super.key});
|
||||
class MusicRecommendPage extends StatefulWidget {
|
||||
const MusicRecommendPage({super.key});
|
||||
|
||||
@override
|
||||
State<MusicRecommandPage> createState() => _MusicRecommandPageState();
|
||||
State<MusicRecommendPage> createState() => _MusicRecommendPageState();
|
||||
}
|
||||
|
||||
class _MusicRecommandPageState extends State<MusicRecommandPage>
|
||||
class _MusicRecommendPageState extends State<MusicRecommendPage>
|
||||
with GridMixin {
|
||||
late final MusicRecommendController _controller = Get.putOrFind(
|
||||
MusicRecommendController.new,
|
||||
|
||||
@@ -208,13 +208,13 @@ class _MusicDetailPageState extends CommonDynPageState<MusicDetailPage> {
|
||||
int? count,
|
||||
bool status = false,
|
||||
required VoidCallback onPressed,
|
||||
IconData? activitedIcon,
|
||||
IconData? activatedIcon,
|
||||
}) {
|
||||
final color = status ? theme.colorScheme.primary : outline;
|
||||
return TextButton.icon(
|
||||
onPressed: onPressed,
|
||||
icon: Icon(
|
||||
status ? activitedIcon : icon,
|
||||
status ? activatedIcon : icon,
|
||||
size: 16,
|
||||
color: color,
|
||||
),
|
||||
@@ -298,7 +298,7 @@ class _MusicDetailPageState extends CommonDynPageState<MusicDetailPage> {
|
||||
child: Builder(
|
||||
builder: (context) => textIconButton(
|
||||
icon: FontAwesomeIcons.thumbsUp,
|
||||
activitedIcon: FontAwesomeIcons.solidThumbsUp,
|
||||
activatedIcon: FontAwesomeIcons.solidThumbsUp,
|
||||
text: '点赞',
|
||||
count: item.wishCount,
|
||||
status: item.wishListen ?? false,
|
||||
@@ -568,7 +568,7 @@ class _MusicDetailPageState extends CommonDynPageState<MusicDetailPage> {
|
||||
'使用稿件量',
|
||||
theme,
|
||||
() => Get.to(
|
||||
const MusicRecommandPage(),
|
||||
const MusicRecommendPage(),
|
||||
arguments: (id: controller.musicId, item: item),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user