Because twitter_api_v2 >=4.7.0 depends on http ^0.13.5 and oplus_flutter depends on http ^1.1.2, twitter_api_v2 >=4.7.0 is forbidden.
So, because oplus_flutter depends on twitter_api_v2 ^4.9.4, version solving failed.
2. Expected behavior
Should be added as a dependency and should work with flutter http: ^1.1.2 package
Output of: flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.0 23A344 darwin-arm64, locale
en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
5. More environment information
twitter_api_v2: ^4.9.4
6. Log information
For this we don't need to require any log information
7. More information
No more information is required please follow steps to reproduce
1. Current bug behavior
Because twitter_api_v2 >=4.7.0 depends on http ^0.13.5 and oplus_flutter depends on http ^1.1.2, twitter_api_v2 >=4.7.0 is forbidden. So, because oplus_flutter depends on twitter_api_v2 ^4.9.4, version solving failed.
2. Expected behavior
Should be added as a dependency and should work with flutter http: ^1.1.2 package
3. Steps to reproduce
1) Add http: ^1.1.2 from https://pub.dev/packages/http in pubspec.yaml under dependencies
2) Add twitter_api_v2: ^4.9.4 from https://pub.dev/packages/http in pubspec.yaml under dependencies
4. Flutter doctor output
5. More environment information
twitter_api_v2: ^4.9.4
6. Log information
For this we don't need to require any log information
7. More information
No more information is required please follow steps to reproduce