How to Open a specific screen once everytime the user installs the app. I was asking this because I created a login screen which opens everytime I opens the app.
If you want to navigate to a screen only once, change a stored variable value when the user navigates to that screen. Then, for the navigate block, check to see if the stored variable has the new value.
For example, you might have a stored variable called FirstRun. When the first screen opens, you need to check if it’s null and if so, set it to true. Then, when navigating to the next screen, check to see if it’s true. If it is, change it to false and navigate to that screen. That way, the if condition won’t trigger again since it needs to be true for that to happen.
2 Likes