Replace 'stretch' with 'bounce' #177
Merged
GitHub Actions / Test Report
succeeded
Jun 20, 2024 in 1s
17 passed, 0 failed and 0 skipped
✅ /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
Loading