From 820491b09a5c0f296edb9f6b924cda6dabb763e8 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 10 Mar 2022 20:39:06 +0100 Subject: [PATCH] Continue to fix issues --- .../ui/routes/forez_member_profile_route.dart | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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(