Skip to content

Conversation

@guidezpl
Copy link
Member

@guidezpl guidezpl commented Feb 7, 2024

Split is a curve that progresses according to beginCurve until split, then according to endCurve.

This curve is used with bottom sheets to allow linear finger dragging and non-linear enter/exit animations. This PR cleans up a previously private class I introduced and replaces it with the more customisable Split.

Fixes #51627

Diagram to be added with flutter/assets-for-api-docs#239

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.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. a: animation Animation APIs f: material design flutter/packages/flutter/material repository. labels Feb 7, 2024
@guidezpl guidezpl changed the title Add new Suspended curve Introduce Suspended curve Feb 7, 2024
@guidezpl guidezpl changed the title Introduce Suspended curve Introduce Split curve Feb 8, 2024
@guidezpl
Copy link
Member Author

guidezpl commented Feb 8, 2024

In google3, there are only 1 instance of an existing confliciting Split class, in the devtools_app_shared package.

So I'm leaning towards keeping this simple name (which matches the naming convention of all other curves) and renaming the Split class in both cases before landing this PR.

@guidezpl guidezpl requested a review from gspencergoog February 8, 2024 15:45
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

Thanks, looks useful.

@gspencergoog
Copy link
Contributor

Sorry, reviewed prematurely: I didn't realize this was still in Draft mode. Did you have more to add here?

@guidezpl
Copy link
Member Author

guidezpl commented Feb 8, 2024

Sorry, reviewed prematurely: I didn't realize this was still in Draft mode. Did you have more to add here?

Thanks! No, I will just have it drafted until I update conflicting class names elsewhere.

@guidezpl guidezpl marked this pull request as ready for review March 11, 2024 11:31
@guidezpl guidezpl merged commit 3109b11 into flutter:master Mar 16, 2024
@guidezpl guidezpl deleted the curve branch March 16, 2024 08:08
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 17, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Mar 17, 2024
flutter/flutter@71606af...7c860dd

2024-03-17 [email protected] Roll Flutter Engine from cfbf11d757d1 to 4c420dd2dfd9 (2 revisions) (flutter/flutter#145280)
2024-03-17 [email protected] Factor out use of "print" in flutter_goldens (flutter/flutter#144846)
2024-03-16 [email protected] Roll Flutter Engine from dd4050334ff3 to cfbf11d757d1 (1 revision) (flutter/flutter#145275)
2024-03-16 [email protected] Roll Flutter Engine from 618ee6c8ba34 to dd4050334ff3 (1 revision) (flutter/flutter#145270)
2024-03-16 [email protected] Roll Flutter Engine from e4602aa149d8 to 618ee6c8ba34 (1 revision) (flutter/flutter#145266)
2024-03-16 [email protected] Roll Flutter Engine from 91b9cf24d328 to e4602aa149d8 (1 revision) (flutter/flutter#145259)
2024-03-16 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Reland #128236 "Improve build output for all platforms" (#143166)" (flutter/flutter#145261)
2024-03-16 [email protected] Reland #128236 "Improve build output for all platforms" (flutter/flutter#143166)
2024-03-16 [email protected] Introduce `Split` curve (flutter/flutter#143130)
2024-03-16 [email protected] Roll Flutter Engine from 120e52b8a1c2 to 91b9cf24d328 (1 revision) (flutter/flutter#145256)
2024-03-16 [email protected] Roll Flutter Engine from 3abc25139959 to 120e52b8a1c2 (1 revision) (flutter/flutter#145254)
2024-03-16 [email protected] Roll Flutter Engine from 6f180615e6ac to 3abc25139959 (1 revision) (flutter/flutter#145253)
2024-03-16 [email protected] Platform view devicelab ad banner scroll list real ads (flutter/flutter#145239)
2024-03-16 [email protected] Roll Flutter Engine from 6ddaa40bf1a6 to 6f180615e6ac (1 revision) (flutter/flutter#145251)
2024-03-16 [email protected] Roll Flutter Engine from d46c1fa17dda to 6ddaa40bf1a6 (1 revision) (flutter/flutter#145250)
2024-03-16 [email protected] Roll Flutter Engine from 7f15dc1200bc to d46c1fa17dda (2 revisions) (flutter/flutter#145248)
2024-03-16 [email protected] Use a separate `TextPainter` for intrinsics calculation in `RenderEditable` and `RenderParagraph` (flutter/flutter#144577)
2024-03-16 [email protected] Roll Flutter Engine from 2db915c64e6e to 7f15dc1200bc (1 revision) (flutter/flutter#145245)
2024-03-15 [email protected] Roll Flutter Engine from ba1115c30381 to 2db915c64e6e (2 revisions) (flutter/flutter#145240)
2024-03-15 [email protected] Roll Flutter Engine from c2fd5333a5d2 to ba1115c30381 (3 revisions) (flutter/flutter#145237)
2024-03-15 [email protected] Renaming the virtual device Nexus5 name to Nexus5.gce_x86 (flutter/flutter#145225)

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://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
auto-submit bot pushed a commit to flutter/assets-for-api-docs that referenced this pull request Mar 18, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: animation Animation APIs f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Look into making _BottomSheetSuspendedCurve public

2 participants