flutter/packages/flutter_tools/templates/app
stuartmorgan 2d623278e7
Restructure the Windows app template (#53600)
This moves the app template more toward being a more generic starting
point for any Flutter application, eliminating some hard-code
assumptions about there being a single window/engine pair that is
directly bound to the life of the application:
- Moves the runloop into its own class, making it capable of servicing
  any number of engine instances.
- Moves the logic for setting up a window containing only a Flutter view
  into a window subclass for ease of re-use.
- Makes quit-on-window-close an optional property. (Long term this
  should be even more generic, like a quit-when-last-window-closes
  option, but this is a short-term improvement that removes the binding
  between the runloop and the window).
- Allows for multiple instances of Win32Window to exist without issues
  relating to the window class registration.

Since there are getting to be a non-trivial number of files associated
with the runner, this moves the source into a runner/ directory, as is
already done on some other platforms.

Note that creating multiple Flutter windows at the same time still
doesn't work correctly even with this change, but this addresses some of
the known issues, and makes it easier to test in the future (e.g., for
debugging engine-level issues with multiple instances).

Fixes #45397
2020-04-06 12:24:05 -07:00
..
.idea Update idea template files (#24311) 2018-11-14 13:45:07 -08:00
android-java.tmpl Update Android activities because plugin registration is now done by FlutterActivity.configureFlutterEngine (#50841) 2020-02-27 18:16:04 -08:00
android-kotlin.tmpl Update Android activities because plugin registration is now done by FlutterActivity.configureFlutterEngine (#50841) 2020-02-27 18:16:04 -08:00
android.tmpl Make --androidx flag a noop in flutter create (#52340) 2020-03-10 20:05:41 -07:00
ios-objc.tmpl Move embedding and linking Flutter frameworks into the tool (#51453) 2020-03-03 12:11:28 -08:00
ios-swift.tmpl Move embedding and linking Flutter frameworks into the tool (#51453) 2020-03-03 12:11:28 -08:00
ios.tmpl Update Xcode compatibility version (#49654) 2020-01-29 15:58:02 -08:00
lib Add an adaptive visual density static function, and add it to… (#51921) 2020-03-31 16:16:25 -07:00
linux.tmpl Add pre-stable support for create on Linux (#51832) 2020-03-03 22:42:52 +01:00
macos.tmpl Remove miscellaneous xcworkspacedata (#50715) 2020-02-18 12:41:27 -08:00
test Update templates (#23698) 2018-10-30 07:58:41 -07:00
web [flutter_tools] update web template to remove some absolute paths (#52040) 2020-03-05 13:59:57 -08:00
windows.tmpl Restructure the Windows app template (#53600) 2020-04-06 12:24:05 -07:00
.gitignore.tmpl [flutter_tools] wire up complete support for Dart obfuscation (#50509) 2020-02-27 08:58:33 -08:00
.metadata.tmpl Rename module --> application in flutter create command. (#22565) 2018-10-04 13:03:20 -07:00
projectName.iml.tmpl Rename module --> application in flutter create command. (#22565) 2018-10-04 13:03:20 -07:00
pubspec.yaml.tmpl Application templates should default to publish_to: none (#52740) 2020-04-01 14:20:02 +02:00
README.md.tmpl Remove trailing whitespace from README template (#31762) 2019-04-29 13:04:55 +02:00

# {{projectName}}

{{description}}

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.