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:
- Refactor the
ListTile returned from the ItemBuilder in crowdaction_participants_screen.dart into it's own widget, eg. ParticipantsListTile.
- Use GestureDetector so that when pressed it will open the ProfileScreen with the participants userId (
participation.userId)
We want to be able to view the profile of another user.
This requires refactoring of
ProfileBloc,ProfileScreen, and maybe other parts.Extend
UserProfilePageto take an argumentString? userId. If null then ProfileBloc should fetch the profile via.v1/profiles/mewhich is what it currently does. However, if theuserIdis supplied, then it should use the endpointv1/profiles/${userId}.Once UserProfilePage, ProfileBloc, and ProfileRepository (including the interface IProfileRepository) has been amended, also include this work:
ListTilereturned from the ItemBuilder incrowdaction_participants_screen.dartinto it's own widget, eg.ParticipantsListTile.participation.userId)