• stuartmorgan's avatar
    Restructure the Windows app template (#53600) · 2d623278
    stuartmorgan authored
    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
    2d623278
Name
Last commit
Last update
..
abstract_method_smoke_test Loading commit data...
android_custom_host_app Loading commit data...
android_embedding_v2_smoke_test Loading commit data...
android_host_app Loading commit data...
android_host_app_v2_embedding Loading commit data...
android_module_host_with_custom_build_v2_embedding/app/src/main/java/io/flutter/addtoapp Loading commit data...
android_semantics_testing Loading commit data...
android_splash_screens Loading commit data...
android_views Loading commit data...
channels Loading commit data...
codegen Loading commit data...
external_ui Loading commit data...
flavors Loading commit data...
flutter_driver_screenshot_test Loading commit data...
flutter_gallery Loading commit data...
image_loading Loading commit data...
ios_add2app Loading commit data...
ios_add2app_life_cycle Loading commit data...
ios_host_app Loading commit data...
ios_host_app_swift Loading commit data...
ios_platform_view_tests Loading commit data...
module_host_with_custom_build Loading commit data...
module_host_with_custom_build_v2_embedding Loading commit data...
named_isolates Loading commit data...
platform_interaction Loading commit data...
release_smoke_test Loading commit data...
simple_codegen Loading commit data...
ui Loading commit data...
web Loading commit data...
web_compile_tests Loading commit data...
README.md Loading commit data...