diff --git a/linux/my_application.cc b/linux/my_application.cc index 1fffb8564..65fb98834 100644 --- a/linux/my_application.cc +++ b/linux/my_application.cc @@ -50,7 +50,7 @@ static void my_application_activate(GApplication* application) { g_autoptr(FlDartProject) project = fl_dart_project_new(); gtk_window_set_icon_from_file(window, g_strconcat(fl_dart_project_get_assets_path(project), "/assets/images/icon.png", NULL), NULL); gtk_window_set_default_size(window, 400, 700); - gtk_widget_realize(GTK_WIDGET(window)); + gtk_widget_show(GTK_WIDGET(window)); fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index a612e7401..e3e4acd3c 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); Win32Window::Size size(400, 700); - if (!window.CreateAndShow(L"miria", origin, size)) { + if (!window.Create(L"miria", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true);