31.74 Flutter Style Directory Structure

20230808

Encouraged

assets/
    images/
lib/
    main.dart
    constants/
       app.dart
    data/
    pages/
    widgets/

An alternative is to place pages and widgets under presentation. I prefer not to do so as it is just two directories under there and it’s a shorter path for importing files into the code.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0