-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
- [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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this to bounce
This PR fixes the following comments that should have been included in #173. - #173 (comment) - #173 (comment) - #173 (comment)
StretchingSheetPhysics
was renamed toBouncingSheetPhysics
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.