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

Rename stretching to bouncing #173

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Rename stretching to bouncing #173

merged 3 commits into from
Jun 18, 2024

Conversation

fujidaiti
Copy link
Owner

@fujidaiti fujidaiti commented Jun 18, 2024

StretchingSheetPhysics was renamed to BouncingSheetPhysics to better reflect its behavior, as it does not change the actual height of the sheet, but rather allows its position to go beyond the content bounds. Accordingly, the other related classes and properties were also renamed.

@fujidaiti fujidaiti self-assigned this Jun 18, 2024
@fujidaiti fujidaiti enabled auto-merge (squash) June 18, 2024 12:18
@fujidaiti fujidaiti merged commit 4b51fa0 into main Jun 18, 2024
7 checks passed
@fujidaiti fujidaiti deleted the rename-stretching-physics branch June 18, 2024 12:19
Comment on lines +33 to +34
- [FixedBouncingBehavior](https://pub.dev/documentation/smooth_sheets/latest/smooth_sheets/FixedBouncingBehavior-class.html), which stretches the sheet by a fixed amount.
- [DirectionAwareBouncingBehavior](https://pub.dev/documentation/smooth_sheets/latest/smooth_sheets/DirectionAwareBouncingBehavior-class.html), which stretches the sheet by a fixed amount, based on the direction of a drag.
Copy link
Owner Author

Choose a reason for hiding this comment

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

Use bounce instead of stretch


### New way to control the bouncing behavior of a sheet

[BouncingSheetBehavior](https://pub.dev/documentation/smooth_sheets/latest/smooth_sheets/BouncingSheetBehavior-class.html) was added as the new way to control the stretching behavior of a sheet. It replaces `StretchingSheetPhysics.stretchingRange` property, which has been removed.
Copy link
Owner Author

Choose a reason for hiding this comment

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

as the new way to control the stretching behavior

"stretching"

@@ -36,7 +36,7 @@ void main() {
group('$SheetPhysics subclasses', () {
test('can create dynamic inheritance relationships', () {
const clamp = ClampingSheetPhysics();
const stretch = StretchingSheetPhysics();
Copy link
Owner Author

Choose a reason for hiding this comment

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

Rename this to bounce

fujidaiti added a commit that referenced this pull request Jun 20, 2024
This PR fixes the following comments that should have been included in #173.
- #173 (comment)
- #173 (comment)
- #173 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant