tree: a99d6b64edeccfdfbd6b1be88217dfa0145678a2
  1. client_wrapper/
  2. fixtures/
  3. public/
  4. testing/
  5. accessibility_bridge_windows.cc
  6. accessibility_bridge_windows.h
  7. accessibility_bridge_windows_unittests.cc
  8. angle_surface_manager.cc
  9. angle_surface_manager.h
  10. BUILD.gn
  11. compositor.h
  12. compositor_opengl.cc
  13. compositor_opengl.h
  14. compositor_opengl_unittests.cc
  15. compositor_software.cc
  16. compositor_software.h
  17. compositor_software_unittests.cc
  18. cursor_handler.cc
  19. cursor_handler.h
  20. cursor_handler_unittests.cc
  21. direct_manipulation.cc
  22. direct_manipulation.h
  23. direct_manipulation_unittests.cc
  24. dpi_utils.cc
  25. dpi_utils.h
  26. dpi_utils_unittests.cc
  27. event_watcher.cc
  28. event_watcher.h
  29. external_texture.h
  30. external_texture_d3d.cc
  31. external_texture_d3d.h
  32. external_texture_pixelbuffer.cc
  33. external_texture_pixelbuffer.h
  34. flutter_desktop_messenger.h
  35. flutter_key_map.g.cc
  36. flutter_platform_node_delegate_windows.cc
  37. flutter_platform_node_delegate_windows.h
  38. flutter_project_bundle.cc
  39. flutter_project_bundle.h
  40. flutter_project_bundle_unittests.cc
  41. flutter_window.cc
  42. flutter_window.h
  43. flutter_window_unittests.cc
  44. flutter_windows.cc
  45. flutter_windows_engine.cc
  46. flutter_windows_engine.h
  47. flutter_windows_engine_unittests.cc
  48. flutter_windows_texture_registrar.cc
  49. flutter_windows_texture_registrar.h
  50. flutter_windows_texture_registrar_unittests.cc
  51. flutter_windows_unittests.cc
  52. flutter_windows_view.cc
  53. flutter_windows_view.h
  54. flutter_windows_view_controller.h
  55. flutter_windows_view_unittests.cc
  56. gl_proc_table.cc
  57. gl_proc_table.h
  58. keyboard_handler_base.h
  59. keyboard_key_channel_handler.cc
  60. keyboard_key_channel_handler.h
  61. keyboard_key_channel_handler_unittests.cc
  62. keyboard_key_embedder_handler.cc
  63. keyboard_key_embedder_handler.h
  64. keyboard_key_embedder_handler_unittests.cc
  65. keyboard_key_handler.cc
  66. keyboard_key_handler.h
  67. keyboard_key_handler_unittests.cc
  68. keyboard_manager.cc
  69. keyboard_manager.h
  70. keyboard_unittests.cc
  71. keyboard_utils.cc
  72. keyboard_utils.h
  73. keyboard_utils_unittests.cc
  74. platform_handler.cc
  75. platform_handler.h
  76. platform_handler_unittests.cc
  77. README.md
  78. sequential_id_generator.cc
  79. sequential_id_generator.h
  80. sequential_id_generator_unittests.cc
  81. settings_plugin.cc
  82. settings_plugin.h
  83. settings_plugin_unittests.cc
  84. system_utils.cc
  85. system_utils.h
  86. system_utils_unittests.cc
  87. task_runner.cc
  88. task_runner.h
  89. task_runner_unittests.cc
  90. task_runner_window.cc
  91. task_runner_window.h
  92. text_input_manager.cc
  93. text_input_manager.h
  94. text_input_plugin.cc
  95. text_input_plugin.h
  96. text_input_plugin_unittest.cc
  97. window_binding_handler.h
  98. window_binding_handler_delegate.h
  99. window_proc_delegate_manager.cc
  100. window_proc_delegate_manager.h
  101. window_proc_delegate_manager_unittests.cc
  102. window_state.h
  103. window_unittests.cc
  104. windows_lifecycle_manager.cc
  105. windows_lifecycle_manager.h
  106. windows_lifecycle_manager_unittests.cc
  107. windows_proc_table.cc
  108. windows_proc_table.h
  109. windowsx_shim.h
shell/platform/windows/README.md

Windows Platform Embedder

This code is the glue between the Flutter engine and the Windows platform. It is responsible for:

  1. Launching the Flutter engine.
  2. Providing a view for the Flutter engine to render into.
  3. Dispatching events to the Flutter engine.

For more information on embedders, see the Flutter architectural overview.

[!CAUTION] This is a best effort attempt to document the Windows embedder. It is not guaranteed to be up to date or complete. If you find a discrepancy, please send a pull request!

See also:

  1. Flutter tool's Windows logic - Builds and runs Flutter Windows apps on the command line.
  2. Windows app template - The entrypoint for Flutter Windows app. This launches the Windows embedder.
  3. platform-windows GitHub issues label
  4. #hackers-desktop Discord channel

Developing

See:

  1. Setting up the Engine development environment
  2. Compiling for Windows
  3. Debugging Windows builds with Visual Studio

Notable files

Some notable files include:

  1. flutter_windows_engine.h - Connects the Windows embedder to the Flutter engine.
  2. flutter_windows_view.h - The logic for a Flutter view.
  3. flutter_window.h - Integrates a Flutter view with Windows (using a win32 child window).
  4. //shell/platform/embedder/embedder.h - The API boundary between the Windows embedder and the Flutter engine.