Target of URI doesn't exist: 'package:flutter/material.dart'.

390 views
Skip to first unread message

Muti

unread,
Mar 14, 2021, 7:36:34 PM3/14/21
to Flutter Development (flutter-dev)
Hey Guys,
I have a big problem. And I don't have much experience with flutter. import 'package: flutter / material.dart' appears underlined in my project.

Target of URI doesn't exist: 'package: flutter / material.dart'.
Try creating the file referenced by the URI, or Try using a URI for a file that does exist.

Can you help me?

wa...@clinicianfirst.com

unread,
Mar 15, 2021, 7:18:06 PM3/15/21
to Flutter Development (flutter-dev)
Assuming the error and import line are cut and paste from your IDE, you have spaces that should not be in the imported string:
import 'package:flutter/material.dart';
works just fine for me.
Reply all
Reply to author
Forward
0 new messages