Recently got started with Flutter 1.0.0.
flutter doctor -v
no issues
Been deploying to an iOS device no worries.
Problem started when I tried to add Dart Packages via the pubspec.yaml file. No packages are installing and it outputs only exit code 0
in VS Code. The extension button at the top of the pubspec.yaml file does not work either.
imports are showing with red underlines and 'URI undefined' so the packages are definitely not downloading and installing.
Any help much appreciated!
Pubspec.yaml file:
name: http_l
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
http: ^0.12.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
and the main.dart file has a red underlined import:
import 'package:http/http.dart' as http;
with error message:
Target of URI doesn't exist: 'package:http/http.dart'.dart(uri_does_not_exist)