1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 16:25:17 +00:00

Fix all warnings

This commit is contained in:
2022-03-11 16:21:35 +01:00
parent 820491b09a
commit 5398970868
18 changed files with 27 additions and 22 deletions

View File

@ -316,6 +316,9 @@ class _NotificationTile extends StatelessWidget {
case _PopupMenuActions.DELETE:
onDelete(notification);
break;
default:
break;
}
}

View File

@ -88,7 +88,7 @@ class _OtherUserFriendsListScreenState
user: _usersInfo!.getUser(_friendsList.elementAt(i)),
onTap: (u) => openUserPage(
context: context,
userID: u.id!,
userID: u.id,
),
),
),

View File

@ -97,7 +97,7 @@ class _SearchResultUser extends StatelessWidget {
user: user,
),
title: Text(user.displayName),
onTap: () => MainController.of(context)!.openUserPage(user.id!),
onTap: () => MainController.of(context)!.openUserPage(user.id),
);
}
}

View File

@ -102,7 +102,7 @@ class _UnreadConversationsScreenState
? _groups!.getGroup(conv.conv.groupID)
: null,
),
title: Text(ConversationsHelper.getConversationName(conv.conv, _users)!),
title: Text(ConversationsHelper.getConversationName(conv.conv, _users)),
subtitle: RichText(
text: TextSpan(style: Theme.of(context).textTheme.bodyText2, children: [
TextSpan(

View File

@ -282,7 +282,7 @@ class _UpdateConversationScreen extends State<UpdateConversationScreen> {
void _toggleAdminStatus(User user) async {
try {
final setAdmin = !_admins.contains(user.id);
await ConversationsHelper.setAdmin(_conversation.id!, user.id!, setAdmin);
await ConversationsHelper.setAdmin(_conversation.id!, user.id, setAdmin);
setState(() {
if (!setAdmin)