Skip to content

[flutter_adaptive_scaffold] Adds additional slot animation parameters #7411

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

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

martijn00
Copy link
Contributor

@martijn00 martijn00 commented Aug 14, 2024

Slots can currently be animated in and out of view, but there is not an ability to change the duration or curves of these animations. This PR adds additional parameters that are passed to the underlying AnimatedSwitcher when switching slots in and out of view.

List which issues are fixed by this PR. You must list at least one issue.

#6957

Pre-launch Checklist

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

@martijn00 martijn00 force-pushed the animations_work branch 2 times, most recently from a3445fb to 35e46ea Compare August 16, 2024 22:00
@martijn00
Copy link
Contributor Author

@jamiewest can you pitch on how the out animation is supposed to work?

@martijn00 martijn00 force-pushed the animations_work branch 2 times, most recently from 34e9b88 to af460bb Compare August 22, 2024 14:46
@martijn00 martijn00 force-pushed the animations_work branch 2 times, most recently from 872133c to 07ca445 Compare September 4, 2024 12:02
@martijn00 martijn00 requested a review from diegotori September 4, 2024 12:03
@martijn00
Copy link
Contributor Author

@Renzo-Olivares can you check this?

Copy link

@diegotori diegotori left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Please add a description to the PR.

@martijn00
Copy link
Contributor Author

@gspencergoog done.

Copy link

@diegotori diegotori left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

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

This LGTM but would it be considered a breaking change since duration is being removed?

@martijn00
Copy link
Contributor Author

@Renzo-Olivares I've updated the version number and changelog.

Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

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

LGTM, but deferring to @gspencergoog regarding removing duration being a breaking change. If it is then it should be stated in the changelog.

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 13, 2024
@auto-submit auto-submit bot merged commit 8f47459 into flutter:main Sep 13, 2024
76 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 16, 2024
flutter/packages@330581f...df88c81

2024-09-14 [email protected] [webview_flutter] Improve flaky scroll tests (flutter/packages#7621)
2024-09-13 [email protected] Bump deps (flutter/packages#7357)
2024-09-13 [email protected] [flutter_adaptive_scaffold] Use improved MediaQuery methods (flutter/packages#7565)
2024-09-13 [email protected] [many] Update example android apps to target SDK level 34. (flutter/packages#7587)
2024-09-13 [email protected] [pigeon] adds support for non nullable types in collections (flutter/packages#7547)
2024-09-13 [email protected] [flutter_adaptive_scaffold] Adds additional slot animation parameters (flutter/packages#7411)
2024-09-13 [email protected] Roll Flutter from 303f222 to 2d30fe4 (21 revisions) (flutter/packages#7646)

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-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

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

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

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 p: flutter_adaptive_scaffold
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants