Skip to content

fix a bug when android uses CupertinoPageTransitionsBuilder... - #114303

Merged
auto-submit[bot] merged 10 commits into
flutter:masterfrom
ipcjs:hotfix/page-transitions-theme-2
Jul 5, 2023
Merged

auto-submit[bot] merged 10 commits into
flutter:masterfrom
ipcjs:hotfix/page-transitions-theme-2

Conversation

@ipcjs

@ipcjs ipcjs commented Oct 29, 2022 •

Copy link
Copy Markdown
Contributor

When android uses iOS style PageTransitionsBuilder and iOS uses android style PageTransitionsBuilder, on android, swipe from the left edge of the screen doesn't work. This PR solves that problem.

#99919 introduced a breaking change, the pr re-implemented it without introducing a breaking change.**

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard Bot added p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Oct 29, 2022
@ipcjs ipcjs changed the title fix a bug when android uses CupertinoPageTransitionsBuilder. fix a bug when android uses CupertinoPageTransitionsBuilder without breaking change. Oct 29, 2022
@HansMuller
HansMuller requested review from MitchellGoodwin and removed request for MitchellGoodwin November 4, 2022 23:08
@flutter-dashboard

Copy link
Copy Markdown

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@ipcjs
ipcjs force-pushed the hotfix/page-transitions-theme-2 branch from e73f462 to 1dcda2c Compare November 28, 2022 17:30
@goderbauer

Copy link
Copy Markdown
Member

@ipcjs Looks like this change is breaking some tests. Can you please take a look and update the PR?

@goderbauer
goderbauer requested a review from chunhtai March 7, 2023 23:59
@chunhtai

Copy link
Copy Markdown
Contributor

It looks like the tests are failing...

Comment thread packages/flutter/lib/src/material/page.dart Outdated
@ipcjs
ipcjs force-pushed the hotfix/page-transitions-theme-2 branch from 1dcda2c to e351120 Compare March 11, 2023 11:54
@ipcjs

ipcjs commented Mar 11, 2023

Copy link
Copy Markdown
Contributor Author

All tests have passed!

@chunhtai
chunhtai self-requested a review March 13, 2023 16:40
Comment thread packages/flutter/lib/src/material/page.dart Outdated
@Hixie

Hixie commented May 23, 2023

Copy link
Copy Markdown
Contributor

@ipcjs Thanks for your contribution! Is this still something you are interested in working on? It's totally fine if not, we're just checking to see what we should do with the PR. It looks like there's just one outstanding comment from @chunhtai that needs resolving before we can land it. Thanks!

@ipcjs
ipcjs force-pushed the hotfix/page-transitions-theme-2 branch from 2d690f0 to 2d032a1 Compare May 28, 2023 14:11
@github-actions github-actions Bot removed the framework flutter/packages/flutter repository. See also f: labels. label May 28, 2023
@ipcjs

ipcjs commented May 28, 2023

Copy link
Copy Markdown
Contributor Author

@Hixie Yes

@chunhtai
chunhtai self-requested a review May 30, 2023 16:12
Comment thread packages/flutter/lib/src/material/page_transitions_theme.dart Outdated
@chunhtai
chunhtai requested a review from HansMuller June 5, 2023 20:29
@flutter-dashboard flutter-dashboard Bot added the framework flutter/packages/flutter repository. See also f: labels. label Jun 7, 2023
@chunhtai
chunhtai self-requested a review June 7, 2023 15:45
Comment thread packages/flutter/lib/src/material/page.dart Outdated
Comment thread packages/flutter/lib/src/material/page.dart Outdated
Comment thread packages/flutter/test/material/page_transitions_theme_test.dart Outdated
Comment thread packages/flutter/test/material/page_transitions_theme_test.dart Outdated
@ipcjs
ipcjs force-pushed the hotfix/page-transitions-theme-2 branch from 2d032a1 to 53d847a Compare June 18, 2023 15:23
@ipcjs
ipcjs requested a review from chunhtai June 20, 2023 16:22

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Except for request for another test, the code LGTM

@chunhtai
chunhtai self-requested a review June 22, 2023 15:56

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread packages/flutter/test/material/page_transitions_theme_test.dart Outdated
Comment thread packages/flutter/test/material/page_transitions_theme_test.dart Outdated
@ipcjs

ipcjs commented Jun 27, 2023 •

Copy link
Copy Markdown
Contributor Author

I've rebase to latest master branch, but the luci-flutter test still doesn't pass.🤔️

@ipcjs

ipcjs commented Jun 27, 2023

Copy link
Copy Markdown
Contributor Author

Looks like all checks have passed!

Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child,
TargetPlatform platform,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is effectively a breaking change for both callers and subclassers (it does break existing internal Google apps). On the upside, it does not breaking any existing Flutter repo or customer tests (flutter/tests). A brief migration will be needed per https://docs.flutter.dev/resources/compatibility. One of the reviewers can update the internal Google apps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should I create a migration guide in the website repository look like flutter/website#8976?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

flutter/website#8976 looks like it covers the changes. Will land this PR and make the internal updates.

@ipcjs ipcjs changed the title fix a bug when android uses CupertinoPageTransitionsBuilder without breaking change. fix a bug when android uses CupertinoPageTransitionsBuilder... Jul 3, 2023
@HansMuller HansMuller added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 5, 2023
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 5, 2023
@auto-submit

auto-submit Bot commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter, pr: 114303, due to This PR has not met approval requirements for merging. You are not a member of flutter-hackers and need 1 more review(s) in order to merge this PR.

  • Merge guidelines: You need at least one approved review if you are already part of flutter-hackers or two member reviews if you are not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@HansMuller HansMuller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@HansMuller HansMuller added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 5, 2023
@auto-submit
auto-submit Bot merged commit aaaea51 into flutter:master Jul 5, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 6, 2023
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Jul 6, 2023
flutter/flutter@35085c3...bc49cd1

2023-07-06 [email protected] Allow long-press gestures to continue even if buttons change. (flutter/flutter#127877)
2023-07-06 [email protected] Enable unreachable_from_main lint - it is stable now!!1 (flutter/flutter#129854)
2023-07-06 [email protected] Update labeler to new label names (flutter/flutter#130040)
2023-07-05 [email protected] MergeableMaterial: Fix adding a slice and separating it (flutter/flutter#128804)
2023-07-05 [email protected] Update infrastructure issue template for new priority scheme (flutter/flutter#129741)
2023-07-05 [email protected] Fix typo in canvas example (flutter/flutter#129879)
2023-07-05 [email protected] Reland Fix AnimatedList & AnimatedGrid doesn't apply MediaQuery padding #129556 (flutter/flutter#129860)
2023-07-05 [email protected] Change from "created via performance template" to "from: performance template" (flutter/flutter#130035)
2023-07-05 [email protected] Removes deprecated APIs from v2.6 in `binding.dart` and `widget_tester.dart` (flutter/flutter#129663)
2023-07-05 [email protected] Add new hot reload case string (flutter/flutter#130008)
2023-07-05 [email protected] Manual roll Flutter Engine from 987b621eac4e to bd2e42b203e1 (32 revisions) (flutter/flutter#130023)
2023-07-05 [email protected] Add simple unit tests for annotations.dart file (flutter/flutter#128902)
2023-07-05 [email protected] fix a bug when android uses CupertinoPageTransitionsBuilder... (flutter/flutter#114303)
2023-07-05 [email protected] Add .env file support for  option `--dart-define-from-file` (flutter/flutter#128668)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
HansMuller added a commit that referenced this pull request Jul 7, 2023
@HansMuller

Copy link
Copy Markdown
Contributor

Unfortunately, preliminary testing didn't turn up the failures that were caused by the breaking API change here. We've had to revert this PR: #130144.

auto-submit Bot pushed a commit that referenced this pull request Jul 7, 2023
…." (#130144)

Reverts #114303

The breaking API change in #114303 broke internal tests/apps (Google internal link b/290154304) as well as external dependents: #130062. 

Fixes #130062
Jasguerrero pushed a commit to Jasguerrero/flutter that referenced this pull request Jul 7, 2023
…." (flutter#130144)

Reverts flutter#114303

The breaking API change in flutter#114303 broke internal tests/apps (Google internal link b/290154304) as well as external dependents: flutter#130062. 

Fixes flutter#130062
CaseyHillers pushed a commit that referenced this pull request Jul 7, 2023
#130155)

…." (#130144)

Reverts #114303

The breaking API change in #114303 broke internal
tests/apps (Google internal link b/290154304) as well as external
dependents: #130062.

Co-authored-by: Hans Muller <[email protected]>
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
flutter/flutter@35085c3...bc49cd1

2023-07-06 [email protected] Allow long-press gestures to continue even if buttons change. (flutter/flutter#127877)
2023-07-06 [email protected] Enable unreachable_from_main lint - it is stable now!!1 (flutter/flutter#129854)
2023-07-06 [email protected] Update labeler to new label names (flutter/flutter#130040)
2023-07-05 [email protected] MergeableMaterial: Fix adding a slice and separating it (flutter/flutter#128804)
2023-07-05 [email protected] Update infrastructure issue template for new priority scheme (flutter/flutter#129741)
2023-07-05 [email protected] Fix typo in canvas example (flutter/flutter#129879)
2023-07-05 [email protected] Reland Fix AnimatedList & AnimatedGrid doesn't apply MediaQuery padding #129556 (flutter/flutter#129860)
2023-07-05 [email protected] Change from "created via performance template" to "from: performance template" (flutter/flutter#130035)
2023-07-05 [email protected] Removes deprecated APIs from v2.6 in `binding.dart` and `widget_tester.dart` (flutter/flutter#129663)
2023-07-05 [email protected] Add new hot reload case string (flutter/flutter#130008)
2023-07-05 [email protected] Manual roll Flutter Engine from 987b621eac4e to bd2e42b203e1 (32 revisions) (flutter/flutter#130023)
2023-07-05 [email protected] Add simple unit tests for annotations.dart file (flutter/flutter#128902)
2023-07-05 [email protected] fix a bug when android uses CupertinoPageTransitionsBuilder... (flutter/flutter#114303)
2023-07-05 [email protected] Add .env file support for  option `--dart-define-from-file` (flutter/flutter#128668)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
chunhtai pushed a commit to chunhtai/packages that referenced this pull request Jun 12, 2026
…." (#130144)

Reverts flutter/flutter#114303

The breaking API change in flutter/flutter#114303 broke internal tests/apps (Google internal link b/290154304) as well as external dependents: flutter/flutter#130062. 

Fixes flutter/flutter#130062
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
flutter/flutter@35085c3...bc49cd1

2023-07-06 [email protected] Allow long-press gestures to continue even if buttons change. (flutter/flutter#127877)
2023-07-06 [email protected] Enable unreachable_from_main lint - it is stable now!!1 (flutter/flutter#129854)
2023-07-06 [email protected] Update labeler to new label names (flutter/flutter#130040)
2023-07-05 [email protected] MergeableMaterial: Fix adding a slice and separating it (flutter/flutter#128804)
2023-07-05 [email protected] Update infrastructure issue template for new priority scheme (flutter/flutter#129741)
2023-07-05 [email protected] Fix typo in canvas example (flutter/flutter#129879)
2023-07-05 [email protected] Reland Fix AnimatedList & AnimatedGrid doesn't apply MediaQuery padding #129556 (flutter/flutter#129860)
2023-07-05 [email protected] Change from "created via performance template" to "from: performance template" (flutter/flutter#130035)
2023-07-05 [email protected] Removes deprecated APIs from v2.6 in `binding.dart` and `widget_tester.dart` (flutter/flutter#129663)
2023-07-05 [email protected] Add new hot reload case string (flutter/flutter#130008)
2023-07-05 [email protected] Manual roll Flutter Engine from 987b621eac4e to bd2e42b203e1 (32 revisions) (flutter/flutter#130023)
2023-07-05 [email protected] Add simple unit tests for annotations.dart file (flutter/flutter#128902)
2023-07-05 [email protected] fix a bug when android uses CupertinoPageTransitionsBuilder... (flutter/flutter#114303)
2023-07-05 [email protected] Add .env file support for  option `--dart-define-from-file` (flutter/flutter#128668)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants