I don’t know why this error is coming up.
I also did import ‘package: flutter/material.dart’.
The default library is undefined
Please help me.
I’ve been doing that for hours.
I don’t know why this error is coming up.
I also did import ‘package: flutter/material.dart’.
The default library is undefined
Please help me.
I’ve been doing that for hours.
2
Answers
Did you imported the material package correctly?
it’s suspected that you are giving a white space before flutter word in package import.
import it like this:
Hope it helps you.
First, try to reload VS Code or other editor you use.
Second, on the popup window you shown there is a second link Quick Fix… Click on it end execute suffested fix.