Search code examples
windowsfluttermacosdesktop

Can I develop flutter desktop app for windows on mac?


Can I develop flutter desktop app for windows on mac? Thanks in advance. I have M1 mac and want to develop app for windows platform.


Solution

  • You can write the code on any OS. However in order to compile your code you will have to do it on Windows OS.

    See the documentation:

    Note: To compile a desktop application, you must build it on the targeted platform: build a Windows application on Windows, a macOS application on macOS, and a Linux application on Linux. If you experience a problem that hasn’t yet been reported, please file an issue and include “desktop:windows win/macos/linux” (whichever platform is appropriate) in the title.