Commit Graph

10 Commits

Author SHA1 Message Date
Matan Lurey
0ffc4ce00e Remove --template=skeleton and add a placeholder error message instead. (#160695)
Closes https://github.com/flutter/flutter/issues/160673.

Does the following:

- Renames `FlutterProjectType` to `FlutterTemplateType`; did some
enhanced enum cleanups while at it
- Creates a hierarchy of `RemovedFlutterTemplateType` from
`ParsedFlutterTemplateType`
- Removes the `skeleton` directory
- Merges `app_shared` back into `app` (no longer required now that
`skeleton` is removed)

Final cleanups are tracked in
https://github.com/flutter/flutter/issues/160692.

(Added @zanderso just to spot check this is what he meant by
https://github.com/flutter/flutter/issues/160673#issuecomment-2557742347)
2024-12-24 00:02:29 +00:00
Filip Hracek
76d5e62f42 Add a more complete app template for Flutter (skeleton) (#83530) 2021-06-28 15:26:04 -07:00
Matej Knopp
858123dced Remove RunLoop from Windows template (#79969) 2021-04-27 14:50:42 -07:00
Andre
3dca866f06 Fix typo in Windows template (#77405) 2021-03-05 14:09:04 -08:00
stuartmorgan
8162bbd8e8 Update Windows system font change handling (#66021)
The engine now has an explicit API for system font changes, rather than
expecting the WM_FONTCHANGE message to be forwarded to the Flutter view.
2020-09-17 15:23:56 -07:00
stuartmorgan
ee4fa1b34e Update Windows app template (#65511) 2020-09-10 13:10:04 -07:00
James Clarke
2d02c70ad5 [Windows] Fix unnecessary surface creation/destruction in startup path (#63301) 2020-08-31 09:28:05 -07:00
stuartmorgan
ca0ddbbc94 Add WindowProc delegation to Windows template (#64166)
This wires up the new WindowProc delegation system that allows plugins
to handle top-level window messages (e.g., to control resize behavior).

Fixes #53168
2020-08-20 17:36:10 -07:00
stuartmorgan
fcbee10da9 [windows] Propagate startup errors in template (#63612) 2020-08-13 11:31:03 -07:00
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