Closed h4h13 closed 4 years ago
Sorry, I got it edited NavigationService
with another method
Future<dynamic> navigateToPush(String routeName, {dynamic arguments}) { return navigatorKey.currentState .pushNamedAndRemoveUntil(routeName, (route) => false); }
Is this right?
@h4h13 yes, the NavigationService has functions for this as well. The last 1 in the list.
Hi, I'm new to this Architectures pattern that you're using, I got stumbled where I have to clear the back stack just like
Navigator.of(context).pushAndRemoveUntil(newRoute, (route) => false);
can you help me how to do this withNavigationService
class *Sorry for my English.