From 552adcde2b6f97438c495283ff750e1af6ed31c7 Mon Sep 17 00:00:00 2001 From: Hitesh Kumar Saini Date: Fri, 8 Apr 2022 13:36:58 +0530 Subject: [PATCH] fix: example app on windows --- example/windows/runner/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/windows/runner/main.cpp b/example/windows/runner/main.cpp index e89d654c..bd1779f0 100644 --- a/example/windows/runner/main.cpp +++ b/example/windows/runner/main.cpp @@ -2,11 +2,12 @@ #include #include +#include "flutter_native_view/flutter_native_view_plugin.h" #include "flutter_window.h" #include "utils.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, - _In_ wchar_t *command_line, _In_ int show_command) { + _In_ wchar_t* command_line, _In_ int show_command) { if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { CreateAndAttachConsole(); } @@ -21,6 +22,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, return EXIT_FAILURE; } window.SetQuitOnClose(true); + flutternativeview::CreateNativeViewContainer(); MSG msg; while (GetMessage(&msg, nullptr, 0, 0)) { TranslateMessage(&msg);