Reputation: 88
i want to ask if it is possible to add the macOS/Windows/Linux module to an existing flutter project. I have developed an app where I unfortunately realized very late that this can also be used on Windows/macOS/Linux.
I thank all of you in advance for information regarding this.
Upvotes: 1
Views: 1223
Reputation: 86
First, you need to have flutter 3.0 or greater
flutter upgrade
Second, create desktop support
flutter create --platforms=windows,macos,linux .
Upvotes: 2
Reputation: 21599
There is currently no add-to-app support for desktop. However, there's nothing magic about the runner application that's made by flutter create
; it's just a minimal application that hosts a Flutter view and is designed to work with Flutter's build system. There's no reason you couldn't replicate portions of it in your own application.
If you want to try, there are a few approaches you could follow:
Upvotes: 0