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

Remove basePhysics from SheetThemeData #148

Merged
merged 3 commits into from
May 30, 2024

Update migration guide

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

Remove basePhysics from SheetThemeData #148

Update migration guide
f982482
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Report succeeded May 30, 2024 in 0s

14 passed, 0 failed and 0 skipped

Tests passed successfully

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

14 tests were completed in 7s with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
package/test/foundation/physics_test.dart 14✅ 70ms

✅ 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