Http pubspec.yaml

Hello
i have this message lib/main.dart:2:8: Error: Not found: ‘package:http/http.dart’
import ‘package:http/http.dart’ as http;
^
i already put http: ^0.13.4 in the depencies but it doesn’t work can someone help me

This sounds more like a question for a different community.
Maybe a “dart” community whatever that is?
I don’t read anything related to Gradle in your question, which this community is about. :slight_smile:

You could also do a simple Google search and immediately land on http | Dart Package which tells you that you should have used one of the upper commands instead of adding manually. Or - but this is pure guessing - you need to execute the implicit command mentioned that these commands would have run.