Skip to content

Commit 270a3b4

Browse files
committed
fix: remove unused simulation
1 parent 33e9a92 commit 270a3b4

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

sheet/lib/src/route/sheet_route.dart

-26
Original file line numberDiff line numberDiff line change
@@ -504,29 +504,3 @@ extension on double {
504504
return ratio * (this - fromLow) + offset;
505505
}
506506
}
507-
508-
class _SheetRouteSimulation extends Simulation {
509-
final SheetController _controller;
510-
final double initialExtent;
511-
512-
_SheetRouteSimulation(this._controller, this.initialExtent);
513-
@override
514-
double dx(double time) {
515-
return 0;
516-
}
517-
518-
@override
519-
bool isDone(double time) {
520-
return _controller.animation.value == 0;
521-
}
522-
523-
@override
524-
double x(double time) {
525-
return _controller.animation.value.mapDistance(
526-
fromLow: 0,
527-
fromHigh: initialExtent,
528-
toLow: 0,
529-
toHigh: 1,
530-
);
531-
}
532-
}

0 commit comments

Comments
 (0)