According to package arrangement conventions, the folder webshould contain the following:
HTML, CSS, images, and possibly even some JavaScript. All this is included in your web package directory. You can organize the contents of this content. Go crazy with subdirectories if it pleases you.
So my directory weblooks something like this:
web/data_access
web/model
web/ui
web/ui/navigation
etc.
Now, how do I manage all these import operations. I get a lot of statements like:
import '../../model/my_model.dart';
import '../../data_access/mock_dao.dart';
etc.
I do not like to use so much in my import ../, because it is fragile, and I have problems when I change something in my folder structure.
Is there a better way to organize code inside a folder web?
or
?