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

Add a way to specify default physics and default ancestor physics #96

Merged
merged 5 commits into from
Apr 20, 2024

Improve documentation of SheetThemeData

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

Add a way to specify default physics and default ancestor physics #96

Improve documentation of SheetThemeData
32c8afd
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Report succeeded Apr 20, 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✅ 65ms

✅ 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