Skip to content

[FEATURE]: View others profiles #329

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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