I am using the below in my main.dart, I have tried cleaning and rebuilding, closing and reopening the vs code, and uninstalling and reinstalling the package. All other packages are working except this one.
[{
"resource": "/Flutter/flutter_app/lib/screens/home/main.dart",
"owner": "_generated_diagnostic_collection_name_#6",
"code": {
"value": "uri_does_not_exist",
"target": {
"$mid": 1,
"path": "/diagnostics/uri_does_not_exist",
"scheme": "https",
"authority": "dart.dev"
}
},
"severity": 8,
"message": "Target of URI doesn't exist: 'package:flutter_animate/flutter_animate.dart'.\nTry creating the file referenced by the URI, or try using a URI for a file that does exist.",
"source": "dart",
"startLineNumber": 4,
"startColumn": 8,
"endLineNumber": 4,
"endColumn": 54
}]
I am using the below in my main.dart, I have tried cleaning and rebuilding, closing and reopening the vs code, and uninstalling and reinstalling the package. All other packages are working except this one.
import 'package:flutter_animate/flutter_animate.dart';
My pubspec.yaml
Error