mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: show total ss
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -23,14 +23,19 @@ class SeasonSeriesPage extends StatefulWidget {
|
||||
State<SeasonSeriesPage> createState() => _SeasonSeriesPageState();
|
||||
}
|
||||
|
||||
class _SeasonSeriesPageState extends State<SeasonSeriesPage> {
|
||||
class _SeasonSeriesPageState extends State<SeasonSeriesPage>
|
||||
with AutomaticKeepAliveClientMixin {
|
||||
late final _controller = Get.put(
|
||||
SeasonSeriesController(widget.mid),
|
||||
tag: widget.heroTag,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get wantKeepAlive => true;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
return Obx(() => _buildBody(_controller.loadingState.value));
|
||||
}
|
||||
|
||||
|
||||
@@ -2,11 +2,8 @@ import 'package:PiliPlus/common/constants.dart';
|
||||
import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_save.dart';
|
||||
import 'package:PiliPlus/common/widgets/network_img_layer.dart';
|
||||
import 'package:PiliPlus/pages/member/new/content/member_contribute/content/video/member_video.dart';
|
||||
import 'package:PiliPlus/pages/member/new/content/member_contribute/member_contribute.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class SeasonSeriesCard extends StatelessWidget {
|
||||
const SeasonSeriesCard({
|
||||
|
||||
@@ -32,17 +32,26 @@ class MemberContributeCtr extends CommonController
|
||||
if (contribute.items?.isNullOrEmpty == false &&
|
||||
contribute.items!.length > 1) {
|
||||
items = contribute.items;
|
||||
if (_ctr.ugcSeasonCount != null) {
|
||||
int currentSeasonCount =
|
||||
items!.where((item) => item.param == 'season_video').length;
|
||||
if (currentSeasonCount < _ctr.ugcSeasonCount!) {
|
||||
items!.add(
|
||||
Item(
|
||||
param: 'ugcSeason',
|
||||
title: '全部合集/列表',
|
||||
),
|
||||
);
|
||||
}
|
||||
// if (_ctr.ugcSeasonCount != null) {
|
||||
// int currentSeasonCount =
|
||||
// items!.where((item) => item.param == 'season_video').length;
|
||||
// if (currentSeasonCount < _ctr.ugcSeasonCount!) {
|
||||
// items!.add(
|
||||
// Item(
|
||||
// param: 'ugcSeason',
|
||||
// title: '全部合集/列表',
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
// show if exist
|
||||
if (_ctr.hasSeasonOrSeries == true) {
|
||||
items!.add(
|
||||
Item(
|
||||
param: 'ugcSeason',
|
||||
title: '全部合集/列表',
|
||||
),
|
||||
);
|
||||
}
|
||||
tabs = items!.map((item) => Tab(text: item.title)).toList();
|
||||
tabController = TabController(
|
||||
|
||||
Reference in New Issue
Block a user