diff --git a/lib/forez/ui/routes/forez_member_profile_route.dart b/lib/forez/ui/routes/forez_member_profile_route.dart index 539c2ba..ce0df1a 100644 --- a/lib/forez/ui/routes/forez_member_profile_route.dart +++ b/lib/forez/ui/routes/forez_member_profile_route.dart @@ -43,7 +43,8 @@ class _ForezMemberProfileRouteState extends State { late PresenceSet _presence; Future _load() async { - _user = await ForezGroupsHelper.getMemberInfo(forezGroup!.id, widget.userID); + _user = + await ForezGroupsHelper.getMemberInfo(forezGroup!.id, widget.userID); _presence = await ForezPresenceHelper.getForUser(forezGroup!.id, widget.userID); } @@ -97,13 +98,11 @@ class _ForezMemberProfileRouteState extends State { background: Stack( fit: StackFit.expand, children: [ - _user.accountImageURL == null - ? Container() - : CachedNetworkImage( - fit: BoxFit.cover, - imageUrl: _user.accountImageURL!, - height: _appBarHeight, - ), + CachedNetworkImage( + fit: BoxFit.cover, + imageUrl: _user.accountImageURL, + height: _appBarHeight, + ), // This gradient ensures that the toolbar icons are distinct // against the background image. const DecoratedBox(