Closed ellet0 closed 11 months ago
hi @ahmedhnewa the problem is that google_fonts package uses http:^1.0.0
witch requires dart 3.x , if I upgrade the http package every developer that is using this package must update their projects to dart 3.x
check 6.x.x
What version are you using?
5.0.11
What OS and version are you using to local deploy your application?
13.4 (22F66)
What platforms are you seeing the problem on?
Android, iOS
pubspec.yaml
Describe the Bug
The issue that, when using the latest version of flutter_facebook_auth with the latest version of google_fonts which is 4.0.5 then there will be some conflicting:
Resolving dependencies... Because no versions of flutter_facebook_auth match >5.0.11 <6.0.0 and flutter_facebook_auth 5.0.11 depends on facebook_auth_desktop ^0.0.9, flutter_facebook_auth ^5.0.11 requires facebook_auth_desktop ^0.0.9. And because no versions of facebook_auth_desktop match >0.0.9 <0.1.0, flutter_facebook_auth ^5.0.11 requires facebook_auth_desktop 0.0.9. And because facebook_auth_desktop 0.0.9 depends on http ^0.13.5 and google_fonts >=4.0.5 depends on http ^1.0.0, flutter_facebook_auth ^5.0.11 is incompatible with google_fonts >=4.0.5. So, because alrayada depends on both google_fonts ^4.0.5 and flutter_facebook_auth ^5.0.11, version solving failed. exit code 1
this can be fixed by using google_fonts 4.0.4 but that just a workaround and not a real solution, the 4.0.5 version of google_fonts change notes:
Bumped http version to 1.0.0
so can this conflict fixed by flutter_facebook_auth? or it need changes from bothExpected Behavior
We all should be be able to use the latest version of al the packages
To Reproduce
Create a new flutter flutter
Make sure you have the latest version of flutter: flutter upgrade
then add those two packages:
if you didn't get the issue, please make sure to upgrade them to the latest version
fluter pub upgrade --major-versions
Relevant log output
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response