mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
@@ -118,7 +118,7 @@ class _FavDetailPageState extends State<FavDetailPage> with GridMixin {
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
expandedHeight: kToolbarHeight + 130,
|
expandedHeight: kToolbarHeight + 127,
|
||||||
pinned: true,
|
pinned: true,
|
||||||
title: enableMultiSelect
|
title: enableMultiSelect
|
||||||
? null
|
? null
|
||||||
@@ -343,9 +343,9 @@ class _FavDetailPageState extends State<FavDetailPage> with GridMixin {
|
|||||||
background: Padding(
|
background: Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: kToolbarHeight + padding.top + 10,
|
top: kToolbarHeight + padding.top + 10,
|
||||||
left: 14 + padding.left,
|
left: 12 + padding.left,
|
||||||
right: 20,
|
right: 12,
|
||||||
bottom: 10,
|
bottom: 7,
|
||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 110,
|
height: 110,
|
||||||
|
|||||||
@@ -47,10 +47,10 @@ class _MemberPageState extends State<MemberPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context).colorScheme;
|
||||||
final padding = MediaQuery.viewPaddingOf(context);
|
final padding = MediaQuery.viewPaddingOf(context);
|
||||||
return Material(
|
return Material(
|
||||||
color: theme.colorScheme.surface,
|
color: theme.surface,
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() {
|
() {
|
||||||
if (_userController.loadingState.value.isSuccess) {
|
if (_userController.loadingState.value.isSuccess) {
|
||||||
@@ -74,10 +74,16 @@ class _MemberPageState extends State<MemberPage> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
if ((_userController.tab2?.length ?? 0) > 1)
|
if ((_userController.tab2?.length ?? 0) > 1)
|
||||||
TabBar(
|
SizedBox(
|
||||||
|
height: 40,
|
||||||
|
child: TabBar(
|
||||||
controller: _userController.tabController,
|
controller: _userController.tabController,
|
||||||
tabs: _userController.tabs,
|
tabs: _userController.tabs,
|
||||||
onTap: _userController.onTapTab,
|
onTap: _userController.onTapTab,
|
||||||
|
dividerColor: theme.outline.withValues(
|
||||||
|
alpha: 0.2,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Expanded(child: _buildBody),
|
Expanded(child: _buildBody),
|
||||||
],
|
],
|
||||||
@@ -94,7 +100,7 @@ class _MemberPageState extends State<MemberPage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Widget> _actions(ThemeData theme) => [
|
List<Widget> _actions(ColorScheme theme) => [
|
||||||
IconButton(
|
IconButton(
|
||||||
tooltip: '搜索',
|
tooltip: '搜索',
|
||||||
onPressed: () => Get.toNamed(
|
onPressed: () => Get.toNamed(
|
||||||
@@ -260,12 +266,12 @@ class _MemberPageState extends State<MemberPage> {
|
|||||||
Icon(
|
Icon(
|
||||||
Icons.error_outline,
|
Icons.error_outline,
|
||||||
size: 19,
|
size: 19,
|
||||||
color: theme.colorScheme.error,
|
color: theme.error,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
Text(
|
Text(
|
||||||
'举报',
|
'举报',
|
||||||
style: TextStyle(color: theme.colorScheme.error),
|
style: TextStyle(color: theme.error),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -307,7 +313,7 @@ class _MemberPageState extends State<MemberPage> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
Widget _buildUserInfo(
|
Widget _buildUserInfo(
|
||||||
ThemeData theme,
|
ColorScheme theme,
|
||||||
LoadingState<SpaceData?> userState,
|
LoadingState<SpaceData?> userState,
|
||||||
) {
|
) {
|
||||||
switch (userState) {
|
switch (userState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user