File tree 3 files changed +18
-20
lines changed 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 1
1
# This file tracks properties of this Flutter project.
2
2
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3
3
#
4
- # This file should be version controlled.
4
+ # This file should be version controlled and should not be manually edited .
5
5
6
6
version:
7
- revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
8
- channel: main
7
+ revision: "05ef4d31315f538bf0a60600e0e6efaf89acc6c2"
8
+ channel: " main"
9
9
10
10
project_type: app
11
11
12
12
# Tracks metadata for the flutter migrate command
13
13
migration:
14
14
platforms:
15
15
- platform: root
16
- create_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
17
- base_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
16
+ create_revision: 05ef4d31315f538bf0a60600e0e6efaf89acc6c2
17
+ base_revision: 05ef4d31315f538bf0a60600e0e6efaf89acc6c2
18
18
- platform: android
19
- create_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
20
- base_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
21
- - platform: ios
22
- create_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
23
- base_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
24
- - platform: linux
25
- create_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
26
- base_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
27
- - platform: macos
28
- create_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
29
- base_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
30
- - platform: windows
31
- create_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
32
- base_revision: c9dd4584702dc5ab67a6dc9c6ebaa33739bac811
19
+ create_revision: 05ef4d31315f538bf0a60600e0e6efaf89acc6c2
20
+ base_revision: 05ef4d31315f538bf0a60600e0e6efaf89acc6c2
33
21
34
22
# User provided section
35
23
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
10
10
# https://github.com/flutter/flutter/issues/57146.
11
11
set (WRAPPER_ROOT "${EPHEMERAL_DIR} /cpp_client_wrapper" )
12
12
13
+ # Set fallback configurations for older versions of the flutter tool.
14
+ if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
15
+ set (FLUTTER_TARGET_PLATFORM "windows-x64" )
16
+ endif ()
17
+
13
18
# === Flutter Library ===
14
19
set (FLUTTER_LIBRARY "${EPHEMERAL_DIR} /flutter_windows.dll" )
15
20
@@ -92,7 +97,7 @@ add_custom_command(
92
97
COMMAND ${CMAKE_COMMAND} -E env
93
98
${FLUTTER_TOOL_ENVIRONMENT}
94
99
"${FLUTTER_ROOT} /packages/flutter_tools/bin/tool_backend.bat"
95
- windows-x64 $<CONFIG>
100
+ ${FLUTTER_TARGET_PLATFORM} $<CONFIG>
96
101
VERBATIM
97
102
)
98
103
add_custom_target (flutter_assemble DEPENDS
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ bool FlutterWindow::OnCreate() {
31
31
this ->Show ();
32
32
});
33
33
34
+ // Flutter can complete the first frame before the "show window" callback is
35
+ // registered. The following call ensures a frame is pending to ensure the
36
+ // window is shown. It is a no-op if the first frame hasn't completed yet.
37
+ flutter_controller_->ForceRedraw ();
38
+
34
39
return true ;
35
40
}
36
41
You can’t perform that action at this time.
0 commit comments