Skip to content

Commit

Permalink
Arihant | refactor ux of profile page, now we return to home page aft…
Browse files Browse the repository at this point in the history
…er switching profile
  • Loading branch information
SatyamAK committed Jun 13, 2024
1 parent 062f51c commit 94b69f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pages/profiles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Profiles extends StatelessWidget {
onTap: () async {
profileProvider.updateSelectedProfile(selectedProfile);
await Provider.of<PokemonProvider>(context, listen: false).refreshCaughtPokemons(selectedProfile.id!);
Navigator.pop(context);
},
title: Text(selectedProfile.name),
subtitle: Text(selectedProfile.generation),
Expand Down

0 comments on commit 94b69f2

Please sign in to comment.