JonasWanke/swipeable_page_route

Build failing with Flutter 3.13.9

okmanideep opened this issue · 2 comments

Describe the bug
Unable to run the app with the package on Flutter 3.13.7. This and 3.13.9 are the only versions I tested the package on and it is failing with the following error on flutter run

../../Pub/Cache/hosted/pub.dev/swipeable_page_route-0.4.1/lib/src/page_route.dart:60:3: Error: The superclass, 'CupertinoPageRoute', has no unnamed constructor that takes no arguments.
  SwipeablePageRoute({
  ^^^^^^^^^^^^^^^^^^

Environment:

  • OS version: NA
  • Flutter version: 3.13.7
  • Package version: 0.4.1
kvenn commented

You'll need to upgrade your version of flutter to one where CupertinoPageRoute contains this parameter: https://api.flutter.dev/flutter/widgets/PageRoute/barrierDismissible.html

I upgraded to latest and that fixed it.

This library should be marked incompatible with older versions. (3.13.1 was failing for me)

Sorry for that! I released a new version (v0.4.2) that has an updated Flutter version requirement of ^3.16.0. To prevent this from happening again in the future, I configured the CI to also run with the minimum supported Flutter version.