Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-14 12:13:17 +08:00
parent 025775d231
commit 09be4f45f0
78 changed files with 428 additions and 849 deletions

View File

@@ -9,7 +9,6 @@ import 'package:get/get.dart';
class SubDetailController
extends CommonListController<SubDetailData, SubDetailItemModel> {
late int id;
String? heroTag;
SubItemModel? subInfo;
@override
@@ -18,7 +17,6 @@ class SubDetailController
final args = Get.arguments;
id = args['id'];
subInfo = args['subInfo'];
heroTag = args['heroTag'];
queryData();
}

View File

@@ -20,7 +20,6 @@ class SubDetailPage extends StatefulWidget {
static void toSubDetailPage(
int id, {
String? heroTag,
SubItemModel? subInfo,
}) {
Get.toNamed(
@@ -28,7 +27,6 @@ class SubDetailPage extends StatefulWidget {
arguments: {
'id': id,
'subInfo': subInfo,
'heroTag': heroTag,
},
);
}
@@ -122,17 +120,6 @@ class _SubDetailPageState extends State<SubDetailPage> with GridMixin {
fontSize: 12.5,
color: theme.colorScheme.outline,
);
Widget cover = NetworkImgLayer(
width: 176,
height: 110,
src: info.cover,
);
if (_subDetailController.heroTag != null) {
cover = Hero(
tag: _subDetailController.heroTag!,
child: cover,
);
}
return SliverAppBar.medium(
expandedHeight: kToolbarHeight + 132,
pinned: true,
@@ -170,7 +157,11 @@ class _SubDetailPageState extends State<SubDetailPage> with GridMixin {
spacing: 12,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
cover,
NetworkImgLayer(
width: 176,
height: 110,
src: info.cover,
),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,