From 99d6c1231fc522d46e15b9236127bd01260d3c96 Mon Sep 17 00:00:00 2001 From: Vishnuv2311 Date: Mon, 9 Jan 2023 12:49:03 +0530 Subject: [PATCH 1/2] Fixed crane build issue --- lib/pages/home.dart | 2 +- pubspec.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/home.dart b/lib/pages/home.dart index 514099d3d2..bab6825b22 100644 --- a/lib/pages/home.dart +++ b/lib/pages/home.dart @@ -982,7 +982,7 @@ class _SnappingScrollPhysics extends ScrollPhysics { (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) { return super.createBallisticSimulation(position, velocity); } - final tolerance = toleranceFor(position); + final tolerance = this.tolerance; final target = _getTargetPixels(position, tolerance, velocity); if (target != position.pixels) { return ScrollSpringSimulation( diff --git a/pubspec.yaml b/pubspec.yaml index 04ab6fcf3e..f5038f0687 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -53,6 +53,7 @@ flutter: # Only one library from the loading unit is necessary. - package:gallery/studies/crane/app.dart assets: + - packages/flutter_gallery_assets/crane/destinations/eat_0.jpg - packages/flutter_gallery_assets/crane/destinations/eat_1.jpg - packages/flutter_gallery_assets/crane/destinations/eat_2.jpg - packages/flutter_gallery_assets/crane/destinations/eat_3.jpg From d0a4b54281e4f7518074966b7efc2ea388f68d0b Mon Sep 17 00:00:00 2001 From: Pierre-Louis <6655696+guidezpl@users.noreply.github.com> Date: Thu, 12 Jan 2023 18:36:51 +0100 Subject: [PATCH 2/2] Revert --- lib/pages/home.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/home.dart b/lib/pages/home.dart index bab6825b22..514099d3d2 100644 --- a/lib/pages/home.dart +++ b/lib/pages/home.dart @@ -982,7 +982,7 @@ class _SnappingScrollPhysics extends ScrollPhysics { (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) { return super.createBallisticSimulation(position, velocity); } - final tolerance = this.tolerance; + final tolerance = toleranceFor(position); final target = _getTargetPixels(position, tolerance, velocity); if (target != position.pixels) { return ScrollSpringSimulation(