spencerccf / app_settings

Flutter plugin for accessing app phone settings for iOS and Android
MIT License
336 stars 125 forks source link

Because myApp depends on app_settings >=4.1.7 which requires SDK version >=2.12.0 <=2.17.1, version solving failed. #143

Closed iLoveDocs closed 2 years ago

iLoveDocs commented 2 years ago

Is there a reason why app_settings is using

sdk: ">=2.12.0 <=2.17.1"

instead of

sdk: ">=2.17.0 <3.0.0"

I am unable to use it (unless I downgrade Flutter).

plinkos commented 2 years ago

Yes, the SDK is dart and dart does not have 3.0 yet. Flutter is set to 3.0.1... this is per Google pub.dev.

iLoveDocs commented 2 years ago

@plinkos

Setting

sdk: ">=2.17.0 <3.0.0"

doesn't necessarily mean the Dart needs to be on 3.0.0. It's the standard convention. All it means is we are targeting Dart SDK till the version 3.0.0 (which may not exist and it's totally fine). Correct me if I'm wrong.

plinkos commented 2 years ago

Done... it is now set to < 3.0.0 ... I must have set it to <= so it would attempt to go up to Dart 3.0 which doesn't exist yet. Get latest version: 4.1.8

iLoveDocs commented 2 years ago

@plinkos Thanks, that worked !