1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00

Continue to fix issues

This commit is contained in:
Pierre HUBERT 2022-03-10 20:39:06 +01:00
parent 7a0b44e446
commit 820491b09a

View File

@ -43,7 +43,8 @@ class _ForezMemberProfileRouteState extends State<ForezMemberProfileRoute> {
late PresenceSet _presence; late PresenceSet _presence;
Future<void> _load() async { Future<void> _load() async {
_user = await ForezGroupsHelper.getMemberInfo(forezGroup!.id, widget.userID); _user =
await ForezGroupsHelper.getMemberInfo(forezGroup!.id, widget.userID);
_presence = _presence =
await ForezPresenceHelper.getForUser(forezGroup!.id, widget.userID); await ForezPresenceHelper.getForUser(forezGroup!.id, widget.userID);
} }
@ -97,11 +98,9 @@ class _ForezMemberProfileRouteState extends State<ForezMemberProfileRoute> {
background: Stack( background: Stack(
fit: StackFit.expand, fit: StackFit.expand,
children: <Widget>[ children: <Widget>[
_user.accountImageURL == null CachedNetworkImage(
? Container()
: CachedNetworkImage(
fit: BoxFit.cover, fit: BoxFit.cover,
imageUrl: _user.accountImageURL!, imageUrl: _user.accountImageURL,
height: _appBarHeight, height: _appBarHeight,
), ),
// This gradient ensures that the toolbar icons are distinct // This gradient ensures that the toolbar icons are distinct