Et Flutter-prosjekt har en standard struktur — med mapper for Dart-kode, plattformspesifikk kode, ressurser og konfigurasjon. Å forstå strukturen og nøkkelfiler (spesielt pubspec.yaml og lib/) er nødvendig for å navigere og bygge Flutter-apper.
Nøkkelmapper og filer
my_app/
lib/ → your DART CODE lives here (the heart of the app)
main.dart → the ENTRY POINT (the main() function; app starts here)
pubspec.yaml → project config: DEPENDENCIES, assets, metadata (very important)
android/ → Android-specific native project/config
ios/ → iOS-specific native project/config
web/ windows/ etc. → other platform folders
test/ → tests
assets/ → images, fonts, etc. (declared in pubspec.yaml)
