From 94b69f2a18b46741aafecc3a4a89927f9d9c959b Mon Sep 17 00:00:00 2001 From: Arihant Kaushik Date: Thu, 13 Jun 2024 10:45:45 +0530 Subject: [PATCH] Arihant | refactor ux of profile page, now we return to home page after switching profile --- lib/pages/profiles.dart | 1 + 1 file changed, 1 insertion(+) 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),