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

Replace 'stretch' with 'bounce' #177

Merged
merged 1 commit into from
Jun 20, 2024

Replace 'stretch' with 'bounce'

bd24caf
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Replace 'stretch' with 'bounce' #177

Replace 'stretch' with 'bounce'
bd24caf
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Report succeeded Jun 20, 2024 in 1s

17 passed, 0 failed and 0 skipped

Tests passed successfully

✅ /home/runner/work/smooth_sheets/smooth_sheets/flutter-test-report.json

17 tests were completed in 8s with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
package/test/foundation/physics_test.dart 14✅ 74ms
package/test/navigation/navigation_sheet_test.dart 3✅ 948ms

✅ package/test/foundation/physics_test.dart

SheetPhysics subclasses
  ✅ can create dynamic inheritance relationships
Default configuration of SheetPhysics
  ✅ does not allow over/under dragging
  ✅ does not apply any resistance if position is in bounds
  ✅ prevents position from going out of bounds
  ✅ creates no ballistic simulation if position is in bounds
  ✅ creates ballistic simulation which ends at the nearest edge
  ✅ creates no settling simulation if the position is in bounds
  ✅ creates settling simulation which ends at nearest edge
SnapToNearestEdge
  ✅ snaps to nearest edge if velocity is small enough
  ✅ is aware of fling gesture direction
  ✅ is disabled if position is out of bounds
SnapToNearest
  ✅ snaps to nearest edge if velocity is small enough
  ✅ is aware of fling gesture direction
  ✅ is disabled if position is out of bounds

✅ package/test/navigation/navigation_sheet_test.dart

✅ Attached controller emits correct pixel values when dragging
✅ Attached controller emits correct boundary values
✅ Works with DropdownButton without crashing