Skip to content

Commit a navigator.pop as soon as the back swipe is lifted - #30422

Merged
xster merged 4 commits into
flutter:masterfrom
xster:back-swipe-pop
Apr 17, 2019
Merged

xster merged 4 commits into
flutter:masterfrom
xster:back-swipe-pop

Conversation

@xster

@xster xster commented Apr 3, 2019 •

Copy link
Copy Markdown
Member

Description

Not committing the pop as soon as it's irreversible makes it ambiguous what to signal to NavigatorObservers since other things can happen to the navigation stack in the meantime.

Related Issues

Fixes #29596

Tests

I added the following tests:

Replace this with a list of the tests that you added as part of this PR. A change in behaviour with no test covering it
will likely get reverted accidentally sooner or later. PRs must include tests for all changed/updated/fixed behaviors. See Test Coverage.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@xster
xster requested review from HansMuller and goderbauer April 3, 2019 03:53
@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label Apr 3, 2019
@xster

xster commented Apr 11, 2019

Copy link
Copy Markdown
Member Author

@goderbauer can you review? Hans is out.

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

});

testWidgets('test edge swipe then drop back at ending point works', (WidgetTester tester) async {
await tester.pumpWidget(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment /// Regression test for https://github.com/flutter/flutter/issues/29596.?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sg

@xster

xster commented Apr 15, 2019

Copy link
Copy Markdown
Member Author

Thanks for reviewing

@xster
xster merged commit 1c332ca into flutter:master Apr 17, 2019
@xster
xster deleted the back-swipe-pop branch April 17, 2019 20:53
@1AlexFix1

Copy link
Copy Markdown

Hooray

Thanks for reviewing

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RouteObserver/NavigatorObserver.didPop no longer called on iOS back swipe

4 participants