Relative Content

Tag Archive for c++flutterwindowscommunicationpigeon

How to use Pigeon in Flutter to communicate with C++ code on Windows platform?

I am trying to utilize Pigeon within Flutter to establish communication with C++ code on the Windows platform. While there are ample examples online for communication with Android and iOS, I haven’t found any regarding Windows interaction. Following examples related to Android and iOS, I have successfully implemented communication with Kotlin. However, I haven’t come across examples for Windows interaction. The official documentation for Pigeon seems to focus on writing plugins rather than apps. I have generated code according to Pigeon’s documentation and written C++ implementation. However, I am unsure of how to compile the code, especially modifying the CMakeLists.txt, and successfully run the Windows program. Can someone provide a simple yet comprehensive example, such as calling the C++ add() function and displaying the result on the screen?