flutter/packages/flutter_tools/templates
2021-08-18 17:12:02 -07:00
..
app Add .gitignore (#85017) 2021-07-09 10:41:03 -07:00
app_shared Add favicon to web template (#88141) 2021-08-18 17:12:02 -07:00
cocoapods Move macOS Podfile logic into the tool (#72020) 2020-12-17 11:48:16 -08:00
module Update flutter create templates for Xcode 13 (#88074) 2021-08-12 11:37:04 -07:00
package Update the package README template (#84160) 2021-06-24 16:21:55 -07:00
plugin Upgrade to stable flutter_lints 1.0.0 (#82365) 2021-05-12 17:14:03 -07:00
skeleton Add a more complete app template for Flutter (skeleton) (#83530) 2021-06-28 15:26:04 -07:00
README.md Add a more complete app template for Flutter (skeleton) (#83530) 2021-06-28 15:26:04 -07:00
template_manifest.json Add .gitignore (#85017) 2021-07-09 10:41:03 -07:00

This directory contains templates for flutter create.

The app_shared subdirectory is special. It provides files for all app templates (as opposed to plugin or module templates). As of May 2021, there are two app templates: app (the counter app) and skeleton (the more advanced list view/detail view app).

  ┌────────────┐
  │ app_shared │
  └──┬──────┬──┘
     │      │
     │      │
     ▼      ▼
┌─────┐    ┌──────────┐
│ app │    │ skeleton │
└─────┘    └──────────┘

Thanks to app_shared, the templates for app and skeleton can contain only the files that are specific to them alone, and the rest is automatically kept in sync.