feat:更新好友菜谱功能

This commit is contained in:
2026-06-28 19:54:32 +08:00
parent a340ba424e
commit c10e8e5ffb
13 changed files with 67 additions and 29 deletions

View File

@@ -74,7 +74,7 @@ class ProfileUserPageState extends State<ProfileUserPage> {
index: currentTab.index,
children: [
MomentList(momentList: provider.momentList, isUser: false),
Text('个人菜谱'),
RecipeList(userId: provider.currentUser.id!),
],
),
),
@@ -91,11 +91,11 @@ class ProfileUserPageState extends State<ProfileUserPage> {
appBar: AppBar(
title: Text(
'${provider.currentUser.username}的个人信息',
style: const TextStyle(color: Colors.white),
style: Theme.of(context).textTheme.titleLarge,
),
backgroundColor: colors.primary,
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
leading: IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.white),
icon: Icon(Icons.arrow_back, color: colors.primary),
onPressed: () => Navigator.pop(context),
),
),