Does clear the navigation stack on disappering will solve the problem(with code suit to navigation)?
var stack = Shell.Current.Navigation.NavigationStack.ToArray(); for (int i = stack.Length - 1; i > 0; i--) { Shell.Current.Navigation.RemovePage(stack[i]); }
You use FlyoutPage, why you use shell navigation? By the way, FlyoutPage is incompatible with .NET MAUI Shell apps, and an exception will be thrown if you attempt to use FlyoutPage in a Shell app. For more information about Shell apps.