From 24e5b3b82496bd234f9662e8299fc1afb3ad1500 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 11 Nov 2025 00:39:35 +0800 Subject: [PATCH] :sparkles: Account tab icon shows pfp --- lib/screens/tabs.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/screens/tabs.dart b/lib/screens/tabs.dart index 5329f07f..67ee4b58 100644 --- a/lib/screens/tabs.dart +++ b/lib/screens/tabs.dart @@ -66,7 +66,19 @@ class TabsScreen extends HookConsumerWidget { icon: Badge.count( count: notificationUnreadCount.value ?? 0, isLabelVisible: (notificationUnreadCount.value ?? 0) > 0, - child: const Icon(Symbols.person_rounded), + child: Consumer( + child: const Icon(Symbols.account_circle_rounded), + builder: (context, ref, fallbackChild) { + final userInfo = ref.watch(userInfoProvider); + if (userInfo.value?.profile.picture != null) { + return ProfilePictureWidget( + file: userInfo.value!.profile.picture, + radius: 12, + ); + } + return fallbackChild!; + }, + ), ), ), if (wideScreen)