0

hot to solve give me a proper steps The current Dart SDK version is 3.2.0. Because datingappmain depends on flutter_tindercard >=0.1.1 which doesn't support null safety, version solving failed. The lower bound of "sdk: '>=2.0.0-dev.68.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.

i want to run my app

2
  • 1
    Seems the package flutter_tindercard is not being maintained anymore. I believe you are new to Flutter and Dart. You can pull the code for the package and migrate it to null safety but I would recommend building on your own or searching for alternative packages. If you want to work using the same package, migrate it to null safety. Leaving the documentation link for null safety. dart.dev/null-safety#dart-3-and-null-safety Commented May 3, 2024 at 16:48
  • @Abhishek jaiswal - If my answer helped you, please mark it as such. Commented May 7, 2024 at 7:32

1 Answer 1

1

The package flutter_tindercard has not been updated in the last three years and on it's pub.dev page you can see an indication that it is not Dart 3 compatible.

Regarding null safety, there is a requirement for the package to at the very least support Dart version 2.12.

You are currently using version 0.1.1 of it (according to what you posted), but the most updated version of this package is 0.2.0.

Looking at the source of it, inside pubspec.yaml, you can see that the Dart version for version 0.2.0 is:

sdk: ">=2.12.0 <3.0.0"

which should be good for null safety.

Having said that, since this package is not maintained and is not Dart 3 compatible, I can highly suggest you either:

  • Find an alternative package that is maintained
  • Rip the code of the library and add it to your application
answered May 3, 2024 at 17:28
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.