diff --git a/lib/pages/profiles.dart b/lib/pages/profiles.dart index afb8a87..f2da084 100644 --- a/lib/pages/profiles.dart +++ b/lib/pages/profiles.dart @@ -30,6 +30,7 @@ class Profiles extends StatelessWidget { onTap: () async { profileProvider.updateSelectedProfile(selectedProfile); await Provider.of(context, listen: false).refreshCaughtPokemons(selectedProfile.id!); + Navigator.pop(context); }, title: Text(selectedProfile.name), subtitle: Text(selectedProfile.generation),