diff options
-rw-r--r-- | lib/screens/dashboard_screen.dart | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/screens/dashboard_screen.dart b/lib/screens/dashboard_screen.dart index 2e27aa2..b267c20 100644 --- a/lib/screens/dashboard_screen.dart +++ b/lib/screens/dashboard_screen.dart @@ -39,9 +39,10 @@ class _DashboardScreenState extends State<DashboardScreen> { child: ListView( children: [ UserAccountsDrawerHeader( - currentAccountPicture: const CircleAvatar( - backgroundImage: - NetworkImage('https://avalos.me/images/pro.jpg'), + currentAccountPicture: CircleAvatar( + backgroundImage: _auth.currentUser?.photoURL != null + ? NetworkImage(_auth.currentUser!.photoURL!) + : null, ), accountName: Text(_auth.currentUser?.displayName ?? "Lincite"), accountEmail: _auth.currentUser?.email != null |