feat: show avatar of user in the profile page

This commit is contained in:
sBubshait 2025-08-06 09:40:12 +03:00
parent 2a05a9f8df
commit 28fbdfba07

View File

@ -234,19 +234,10 @@ class _ProfilePageState extends State<ProfilePage> {
), ),
) )
else if (userData != null) ...[ else if (userData != null) ...[
CircleAvatar( UserAvatar(
displayName: userData!['displayName'] ?? 'Unknown User',
avatarUrl: userData!['avatar']?.toString(),
radius: 50, radius: 50,
backgroundColor: Color(0xFF6A4C93),
child: Text(
(userData!['displayName'] ?? 'U')
.substring(0, 1)
.toUpperCase(),
style: TextStyle(
color: Colors.white,
fontSize: 36,
fontWeight: FontWeight.bold,
),
),
), ),
SizedBox(height: 16), SizedBox(height: 16),
Text( Text(