Skip to content

Commit

Permalink
Fixed blurry avatar image
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince2347X committed Apr 19, 2023
1 parent bc73113 commit 454bba2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/components/avatar.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';

import 'package:firebase_auth/firebase_auth.dart';

class CustomAvatar extends StatelessWidget {
final User user;
const CustomAvatar({super.key, required this.user});
Expand All @@ -24,7 +25,7 @@ class CustomAvatar extends StatelessWidget {
: CircleAvatar(
radius: 48,
backgroundImage: NetworkImage(
user.photoURL!,
user.photoURL!.replaceAll('=s96-c', '=s400-c'),
),
),
);
Expand Down

0 comments on commit 454bba2

Please sign in to comment.