What is the difference between package import and normal import in flutter?

Posted by Jennifer | Updated on

What is the difference between package import and normal import in flutter?

There’s no performance differences or anything like that.

But.. it is better to use package paths because you won’t need to edit all your imports in case you move your file to another location (as they’re not relative paths).


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers