From 29eec9f63b241987c30f34a35c9eabbbb7238341 Mon Sep 17 00:00:00 2001 From: Jacob Moura Date: Mon, 8 Apr 2024 10:05:19 -0300 Subject: [PATCH] change version --- flutter_modular/CHANGELOG.md | 3 +++ flutter_modular/example/windows/flutter/CMakeLists.txt | 7 ++++++- flutter_modular/example/windows/runner/flutter_window.cpp | 5 +++++ flutter_modular/pubspec.yaml | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/flutter_modular/CHANGELOG.md b/flutter_modular/CHANGELOG.md index f617dbeb..241a9523 100644 --- a/flutter_modular/CHANGELOG.md +++ b/flutter_modular/CHANGELOG.md @@ -1,3 +1,6 @@ +## [6.3.3] - 2024-04-08 +- Fix Deep Link + ## [6.3.0] - 2023-08-31 - Fix phantom dependencies. When an instance was registered in an ancestor Module, it was available to its children diff --git a/flutter_modular/example/windows/flutter/CMakeLists.txt b/flutter_modular/example/windows/flutter/CMakeLists.txt index 930d2071..903f4899 100644 --- a/flutter_modular/example/windows/flutter/CMakeLists.txt +++ b/flutter_modular/example/windows/flutter/CMakeLists.txt @@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake) # https://github.com/flutter/flutter/issues/57146. set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + # === Flutter Library === set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") @@ -92,7 +97,7 @@ add_custom_command( COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" - windows-x64 $ + ${FLUTTER_TARGET_PLATFORM} $ VERBATIM ) add_custom_target(flutter_assemble DEPENDS diff --git a/flutter_modular/example/windows/runner/flutter_window.cpp b/flutter_modular/example/windows/runner/flutter_window.cpp index b25e363e..955ee303 100644 --- a/flutter_modular/example/windows/runner/flutter_window.cpp +++ b/flutter_modular/example/windows/runner/flutter_window.cpp @@ -31,6 +31,11 @@ bool FlutterWindow::OnCreate() { this->Show(); }); + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + return true; } diff --git a/flutter_modular/pubspec.yaml b/flutter_modular/pubspec.yaml index 3364c7d1..537f80d1 100644 --- a/flutter_modular/pubspec.yaml +++ b/flutter_modular/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_modular description: Smart project structure with dependency injection and route management -version: 6.3.0 +version: 6.3.3 homepage: https://github.com/Flutterando/modular environment: