flutter/packages/flutter_tools/templates
2022-02-02 06:50:14 -08:00
..
app [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
app_shared [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
app_test_widget/test [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
cocoapods Move macOS Podfile logic into the tool (#72020) 2020-12-17 11:48:16 -08:00
module [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
package [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
plugin [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
plugin_ffi FFI plugins (#96225) 2022-01-26 23:44:45 +01:00
plugin_shared [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
skeleton [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
README.md FFI plugins (#96225) 2022-01-26 23:44:45 +01:00
template_manifest.json FFI plugins (#96225) 2022-01-26 23:44:45 +01:00

This directory contains templates for flutter create.

The *_shared subdirectories provide files for multiple templates.

  • app_shared for app and skeleton.
  • plugin_shared for (method channel) plugin and plugin_ffi.

For example, 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.