diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-12-05 22:40:01 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-12-05 22:40:01 +0200 |
| commit | 953b5ce3ad7e933c6f008202346fe5bf2985bf9e (patch) | |
| tree | 45cbfd660ea224ba095e37292a731522eac5be2f /windows/runner/main.cpp | |
| parent | 3722890dfb243288417d0bbce88bdca99ec7493a (diff) | |
| download | carpool-953b5ce3ad7e933c6f008202346fe5bf2985bf9e.tar.xz carpool-953b5ce3ad7e933c6f008202346fe5bf2985bf9e.zip | |
Removed uncessary folders for github
Diffstat (limited to 'windows/runner/main.cpp')
| -rw-r--r-- | windows/runner/main.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp deleted file mode 100644 index 287ed6a..0000000 --- a/windows/runner/main.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include <flutter/dart_project.h> -#include <flutter/flutter_view_controller.h> -#include <windows.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) { - // Attach to console when present (e.g., 'flutter run') or create a - // new console when running with a debugger. - if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { - CreateAndAttachConsole(); - } - - // Initialize COM, so that it is available for use in the library and/or - // plugins. - ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); - - flutter::DartProject project(L"data"); - - std::vector<std::string> command_line_arguments = - GetCommandLineArguments(); - - project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); - - FlutterWindow window(project); - Win32Window::Point origin(10, 10); - Win32Window::Size size(1280, 720); - if (!window.Create(L"carpool", origin, size)) { - return EXIT_FAILURE; - } - window.SetQuitOnClose(true); - - ::MSG msg; - while (::GetMessage(&msg, nullptr, 0, 0)) { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - } - - ::CoUninitialize(); - return EXIT_SUCCESS; -} |
