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

Attach default controller to sheet if not explicitly specified #102

Merged
merged 1 commit into from
Apr 22, 2024

Attach default controller to sheet if not explicitly specified

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

Attach default controller to sheet if not explicitly specified #102

Attach default controller to sheet if not explicitly specified
0a14ff9
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Report succeeded Apr 22, 2024 in 1s

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✅ 67ms

✅ 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