You have provided or trying to use http: ^0.12.0
dependency on implementing API calls in pubspec.yaml file but flutter_test will require http: ^0.11.3+17
. That's why it fails. Please replace
dependencies:
flutter:
sdk: flutter
http: ^0.12.0
with
dependencies:
flutter:
sdk: flutter
http: ^0.11.3
Hope it will help you out.