diff --git a/lib/src/foundation/sheet_activity.dart b/lib/src/foundation/sheet_activity.dart index 297b6e0..21f3678 100644 --- a/lib/src/foundation/sheet_activity.dart +++ b/lib/src/foundation/sheet_activity.dart @@ -451,7 +451,7 @@ class SettlingSheetActivity extends SheetActivity { _elapsedDuration = elapsedDuration; if (newPixels == destination) { - owner.goBallistic(0); + owner.goIdle(); } } diff --git a/test/foundation/sheet_activity_test.dart b/test/foundation/sheet_activity_test.dart index 52cb2e6..f54836e 100644 --- a/test/foundation/sheet_activity_test.dart +++ b/test/foundation/sheet_activity_test.dart @@ -243,7 +243,7 @@ void main() { }); test( - 'Should start a ballistic activity when it reaches destination', + 'Should start an idle activity when it reaches destination', () { final _ = SettlingSheetActivity( destination: const Extent.proportional(1), @@ -252,7 +252,7 @@ void main() { when(owner.metrics).thenReturn(initialMetrics.copyWith(pixels: 540)); internalOnTickCallback!(const Duration(milliseconds: 1000)); - verify(owner.goBallistic(0)); + verify(owner.goIdle()); }, );