From 9da6740ccbb26a95604739fb1fcce91b27533792 Mon Sep 17 00:00:00 2001 From: Mohellebi abdessalem Date: Tue, 12 Nov 2024 23:18:07 +0100 Subject: [PATCH 1/2] Update platform-channels.md --- src/content/platform-integration/platform-channels.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/platform-integration/platform-channels.md b/src/content/platform-integration/platform-channels.md index 96f2c3bcf2..1e2f26fbe3 100644 --- a/src/content/platform-integration/platform-channels.md +++ b/src/content/platform-integration/platform-channels.md @@ -894,7 +894,9 @@ And replace with the following: You should now be able to run the application on Windows. If your device doesn't have a battery, it displays 'Battery level not available'. - +Note: To ensure the changes take effect, the project should be recompiled +with Visual Studio.Otherwise, you may encounter an error saying: Failed to get +battery level: Memory leak . ### Step 6: Add a macOS platform-specific implementation Start by opening the macOS host portion of your Flutter app in Xcode: From 07b533a53b3bd47bbe77d0902ec80a5b14f7ad45 Mon Sep 17 00:00:00 2001 From: "Shams Zakhour (ignore Sfshaza)" <44418985+sfshaza2@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:07:45 -0800 Subject: [PATCH 2/2] Update src/content/platform-integration/platform-channels.md --- src/content/platform-integration/platform-channels.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/content/platform-integration/platform-channels.md b/src/content/platform-integration/platform-channels.md index 1e2f26fbe3..569d63a752 100644 --- a/src/content/platform-integration/platform-channels.md +++ b/src/content/platform-integration/platform-channels.md @@ -894,9 +894,11 @@ And replace with the following: You should now be able to run the application on Windows. If your device doesn't have a battery, it displays 'Battery level not available'. -Note: To ensure the changes take effect, the project should be recompiled -with Visual Studio.Otherwise, you may encounter an error saying: Failed to get -battery level: Memory leak . +:::note +To ensure that the changes take effect, recompile the project. +Otherwise, you might encounter the following error: **Failed to get +battery level: Memory leak.** +::: ### Step 6: Add a macOS platform-specific implementation Start by opening the macOS host portion of your Flutter app in Xcode: