Skip to content

[FEATURE]: View others profiles #329

@Xazin

Description

@Xazin

We want to be able to view the profile of another user.

This requires refactoring of ProfileBloc, ProfileScreen, and maybe other parts.

Extend UserProfilePage to take an argument String? userId. If null then ProfileBloc should fetch the profile via. v1/profiles/me which is what it currently does. However, if the userId is supplied, then it should use the endpoint v1/profiles/${userId}.

Once UserProfilePage, ProfileBloc, and ProfileRepository (including the interface IProfileRepository) has been amended, also include this work:

  1. Refactor the ListTile returned from the ItemBuilder in crowdaction_participants_screen.dart into it's own widget, eg. ParticipantsListTile.
  2. Use GestureDetector so that when pressed it will open the ProfileScreen with the participants userId (participation.userId)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions