mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix all warnings
This commit is contained in:
		@@ -23,7 +23,7 @@ class AccountImageWidget extends StatelessWidget {
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    return Material(
 | 
			
		||||
      child: CachedNetworkImage(
 | 
			
		||||
        imageUrl: user.accountImageURL!,
 | 
			
		||||
        imageUrl: user.accountImageURL,
 | 
			
		||||
        width: width,
 | 
			
		||||
        height: width,
 | 
			
		||||
        fit: BoxFit.cover,
 | 
			
		||||
 
 | 
			
		||||
@@ -217,6 +217,8 @@ class _ComunicMobileAppBarState extends SafeState<ComunicMobileAppBar> {
 | 
			
		||||
      case BarCallbackActions.ACTION_LOGOUT:
 | 
			
		||||
        controller!.requestLogout();
 | 
			
		||||
        break;
 | 
			
		||||
      default:
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -169,7 +169,7 @@ class _SearchResultsWidget extends StatelessWidget {
 | 
			
		||||
          leading: AccountImageWidget(user: user),
 | 
			
		||||
          title: Text(user.displayName),
 | 
			
		||||
          onTap: () {
 | 
			
		||||
            MainController.of(context)!.openUserPage(user.id!);
 | 
			
		||||
            MainController.of(context)!.openUserPage(user.id);
 | 
			
		||||
            onTap();
 | 
			
		||||
          },
 | 
			
		||||
        );
 | 
			
		||||
@@ -185,6 +185,5 @@ class _SearchResultsWidget extends StatelessWidget {
 | 
			
		||||
          },
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
    throw Exception("Unreachable statement!");
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -105,8 +105,6 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
 | 
			
		||||
      case MembershipType.CONVERSATION:
 | 
			
		||||
        return _buildConversationMembership(membership);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    throw Exception("Unreachable statement!");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // TODO : add private messages icon support
 | 
			
		||||
@@ -156,7 +154,7 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
 | 
			
		||||
        leading: AccountImageWidget(user: user, width: _MembershipIconsWidth),
 | 
			
		||||
        title: Text(user.displayName),
 | 
			
		||||
        subtitle: subtitle,
 | 
			
		||||
        onTap: () => MainController.of(context)!.openUserPage(user.id!),
 | 
			
		||||
        onTap: () => MainController.of(context)!.openUserPage(user.id),
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
@@ -237,7 +235,7 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
 | 
			
		||||
            SizedBox(width: 5),
 | 
			
		||||
            Expanded(
 | 
			
		||||
              child: Text(ConversationsHelper.getConversationName(
 | 
			
		||||
                  conversation, _usersList)!),
 | 
			
		||||
                  conversation, _usersList)),
 | 
			
		||||
            ),
 | 
			
		||||
          ],
 | 
			
		||||
        ),
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ class TourNotificationsPane extends PresentationPane {
 | 
			
		||||
            onConfigured: onConfigured,
 | 
			
		||||
            onChanged: onChanged,
 | 
			
		||||
          ),
 | 
			
		||||
          canGoNext: pushNotificationsKey?.currentState?.canSubmit ?? false,
 | 
			
		||||
          canGoNext: pushNotificationsKey.currentState?.canSubmit ?? false,
 | 
			
		||||
          onTapNext: (c) => pushNotificationsKey.currentState!.submit(),
 | 
			
		||||
          visible: visible,
 | 
			
		||||
        );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user