We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33e9a92 commit 270a3b4Copy full SHA for 270a3b4
sheet/lib/src/route/sheet_route.dart
@@ -504,29 +504,3 @@ extension on double {
504
return ratio * (this - fromLow) + offset;
505
}
506
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
519
- bool isDone(double time) {
520
- return _controller.animation.value == 0;
521
522
523
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