mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
fix space setting
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -44,6 +44,7 @@ class _MemberHomeState extends State<MemberHome>
|
|||||||
Widget _buildBody(LoadingState<SpaceData?> loadingState) {
|
Widget _buildBody(LoadingState<SpaceData?> loadingState) {
|
||||||
final isVertical = context.orientation == Orientation.portrait;
|
final isVertical = context.orientation == Orientation.portrait;
|
||||||
final setting = _ctr.spaceSetting;
|
final setting = _ctr.spaceSetting;
|
||||||
|
final isOwner = setting != null;
|
||||||
final color = Theme.of(context).colorScheme.outline;
|
final color = Theme.of(context).colorScheme.outline;
|
||||||
return switch (loadingState) {
|
return switch (loadingState) {
|
||||||
Loading() => loadingWidget,
|
Loading() => loadingWidget,
|
||||||
@@ -89,7 +90,7 @@ class _MemberHomeState extends State<MemberHome>
|
|||||||
title: '收藏',
|
title: '收藏',
|
||||||
param: 'favorite',
|
param: 'favorite',
|
||||||
count: res.favourite2!.count!,
|
count: res.favourite2!.count!,
|
||||||
visible: setting?.favVideo == 1,
|
visible: isOwner ? setting.favVideo == 1 : null,
|
||||||
),
|
),
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@@ -106,7 +107,7 @@ class _MemberHomeState extends State<MemberHome>
|
|||||||
title: '最近投币的视频',
|
title: '最近投币的视频',
|
||||||
param: 'coinArchive',
|
param: 'coinArchive',
|
||||||
count: res.coinArchive!.count!,
|
count: res.coinArchive!.count!,
|
||||||
visible: setting?.coinsVideo == 1,
|
visible: isOwner ? setting.coinsVideo == 1 : null,
|
||||||
),
|
),
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
@@ -139,7 +140,7 @@ class _MemberHomeState extends State<MemberHome>
|
|||||||
title: '最近点赞的视频',
|
title: '最近点赞的视频',
|
||||||
param: 'likeArchive',
|
param: 'likeArchive',
|
||||||
count: res.likeArchive!.count!,
|
count: res.likeArchive!.count!,
|
||||||
visible: setting?.likesVideo == 1,
|
visible: isOwner ? setting.likesVideo == 1 : null,
|
||||||
),
|
),
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
@@ -202,7 +203,7 @@ class _MemberHomeState extends State<MemberHome>
|
|||||||
title: '追番',
|
title: '追番',
|
||||||
param: 'bangumi',
|
param: 'bangumi',
|
||||||
count: res.season!.count!,
|
count: res.season!.count!,
|
||||||
visible: setting?.bangumi == 1,
|
visible: isOwner ? setting.bangumi == 1 : null,
|
||||||
),
|
),
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
|
|||||||
Reference in New Issue
Block a user