I’m facing dependency conflicts in my Flutter project when using the package_info_plus
package. The issue comes because package_info_plus
has specific version requirements for the http
package, which are incompatible with other packages in my project. Despite multiple attempts to resolve the conflicts by adjusting version constraints, I am still unable to find a compatible combination. I need assistance in resolving these conflicts or finding an alternative package to retrieve package information without disrupting other dependencies. Thanks.
pubspec.yaml
`environment:
sdk: ‘>=3.1.0 <4.0.0’
dependencies:
flutter:
sdk: flutter
file: ^7.0.0
shared_preferences: ^2.0.13
flutter_localizations:
sdk: flutter
intl: any
get_storage: ^2.1.1
get_cli: ^1.8.1
local_session_timeout: ^2.3.1
go_router: ^14.1.2
casbin: ^0.1.0
jwt_decoder: ^2.0.1
flex_color_scheme: ^7.3.1
one_clock: ^2.0.1
cupertino_icons: ^1.0.2
flutter_dotenv: ^5.1.0
json_serializable: ^6.7.1
firebase_core: ^2.24.2
firebase_messaging: ^14.7.9
openid_client: ^0.4.8
hive: ^2.2.3
hive_flutter: ^1.1.0
flutter_svg: ^2.0.10+1
http: ^1.2.0
flutter_json_view: ^1.1.4
get: ^4.6.6
url_launcher: ^6.2.5
internet_connection_checker_plus: ^2.3.0
json_annotation: ^4.9.0
dio: any
provider: ^6.1.2
freezed_annotation: ^2.4.1
footer: ^0.0.4
font_awesome_flutter: ^10.7.0
I attempted to update the version constraints of conflicting packages such as http and internet_connection_checker_plus to resolve dependency conflicts. and also I tried excluding certain dependencies to see if it relived the conflicts, but it resulted in other issues within my project.
But none of it worked..