Reputation: 71
I'm a beginner in the developers world and i'm getting myself ready with Udemy Assit Video tutorial by Paul Dichone so i'm having a little problem which i need help on.
this is what am supposed to import
'import: ./ui/home.dart';
in containers and layouts so i'm using visual studio code and what it gives me is
'import 'package:intro_layout_containers/ui/home.dart';
How am i going to get it right?
Upvotes: 0
Views: 25
Reputation: 277747
These two are equivalent.
It is just a different syntax:
import './ui/home.dart';
is a relative importimport 'package:intro_layout_containers/ui/home.dart';
is an absolute import.But the imported file is the same
Upvotes: 1