From 2a7bef1281045117490eaa6a470e0c04050e003f Mon Sep 17 00:00:00 2001 From: jayesh Date: Mon, 29 Apr 2024 15:35:31 +0530 Subject: [PATCH] profile image --- lib/view/Sidemenu/Sidemenu.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/view/Sidemenu/Sidemenu.dart b/lib/view/Sidemenu/Sidemenu.dart index b35bdb8..0069bf7 100644 --- a/lib/view/Sidemenu/Sidemenu.dart +++ b/lib/view/Sidemenu/Sidemenu.dart @@ -120,8 +120,9 @@ class _SideMenuState extends State { height: 80.h, decoration: ShapeDecoration( image: DecorationImage( - image: NetworkImage( - ProfileObj!.data!.profilePhoto ?? ""), + image: NetworkImage(ProfileObj!.data == null + ? "" + : ProfileObj!.data!.profilePhoto ?? ""), fit: BoxFit.fill, ), shape: OvalBorder(),