[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to finish first screen on 'Navigate to a new screen and back' page #7793

Open
jayesh28589 opened this issue Jun 19, 2018 · 3 comments
Assignees
Labels
e1-hours Effort: < 8 hrs fix.code-sample Needs new or updated code sample from.flutter-sdk Reported via move from flutter/flutter p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. st.triage.ltw Indicates Lead Tech Writer has triaged t.framework Relates to Flutter framework t.navigation Relates to navigation, routing, or both in an app

Comments

@jayesh28589
Copy link
jayesh28589 commented Jun 19, 2018

From URL: https://docs.flutter.dev/cookbook/navigation/navigation-basics

Also add method that how can we finish (destroy) the first screen when we navigate to second screen.

@brianegan
Copy link
Contributor

Hey there -- good call. I should add docs for that case. In this case, you want to use the pushReplacement method!

https://docs.flutter.io/flutter/widgets/Navigator/pushReplacement.html

@zoechi zoechi added the t.framework Relates to Flutter framework label Dec 4, 2018
@kf6gpe kf6gpe added the P4 label May 29, 2020
@atsansone atsansone transferred this issue from flutter/flutter Nov 11, 2022
@atsansone atsansone added from.flutter-sdk Reported via move from flutter/flutter and removed documentation labels Nov 11, 2022
@atsansone atsansone added the fix.code-sample Needs new or updated code sample label May 15, 2023
@atsansone atsansone changed the title Issue from website page Navigate to a new screen and back Add method to finish first screen on 'Navigate to a new screen and back' page May 15, 2023
@atsansone atsansone added st.triage.ltw Indicates Lead Tech Writer has triaged e1-hours Effort: < 8 hrs and removed passed first triage labels May 15, 2023
@atsansone atsansone added p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. t.navigation Relates to navigation, routing, or both in an app and removed P4 labels Jun 4, 2023
@atsansone
Copy link
Contributor

Link to https://api.flutter.dev/flutter/widgets/Navigator/pushReplacement.html as part of this recipe.

@miquelbeltran
Copy link
Member

What would you prefer here @atsansone ? To modify the original cookbook recipe to include a link and an explanation, or the creation of a new cookbook recipe that shows how / when to use pushReplacement?

@miquelbeltran miquelbeltran self-assigned this Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e1-hours Effort: < 8 hrs fix.code-sample Needs new or updated code sample from.flutter-sdk Reported via move from flutter/flutter p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. st.triage.ltw Indicates Lead Tech Writer has triaged t.framework Relates to Flutter framework t.navigation Relates to navigation, routing, or both in an app
Projects
None yet
Development

No branches or pull requests

8 participants