Rémi Rousselet
Rémi Rousselet

Reputation: 276901

Build flutter app for desktops

I saw a few peoples managed to build flutter apps for other OS than the usual Android/IOS

My question here is simple : How ? What is the current process to build a flutter app for mac/windows ? There's no need for it to be production ready. Something experimental is enough

Upvotes: 14

Views: 14614

Answers (5)

Tokenyet
Tokenyet

Reputation: 4281

For those who want to know the current state(2021), here is the startup project to help you test It for MacOS, Linux, Windows. The project heavily modified from official ci to build cross-platform easily. You might want to check the ci.yml If you want to build on certain platform without github-action.

In additional, go-flutter is also a valid option, that used go-lang and openGL to achieve cross-platform features.

If you want to know the difference between official and go-flutter, here is the issue about the details.

Upvotes: 0

Jithin Jude
Jithin Jude

Reputation: 920

Run a Flutter project in Desktop

Step 1: For Flutter to run on Desktop, we must be on the master channel, with the latest release. So run from cmd,

flutter channel master

and

flutter upgrade

Step 2: Then we have to enable flutter desktop support.

set ENABLE_FLUTTER_DESKTOP=true

Step 3: Then clone this repo and cd example directory.

Step 4: Then replace the lib folder inside the example directory with our existing code, and replace the pubspec.yaml file, with our existing one.

Step 5: Then run from terminal

flutter packages get

and

flutter run

You can find more info here.

Upvotes: 3

Rémi Rousselet
Rémi Rousselet

Reputation: 276901

For those wondering how to : https://github.com/google/flutter-desktop-embedding

There's an example using openGL to render a flutter app

Upvotes: 9

BraveEvidence
BraveEvidence

Reputation: 85

You can check this link out

https://github.com/google/flutter-desktop-embedding

Still not stable but does a good job of rendering flutter apps on desktop

Upvotes: 1

Shubhamhackz
Shubhamhackz

Reputation: 7963

Here's something I found useful, it is currently in alpha version but does the job by enabling us to develop Mac and Windows apps in Flutter : https://feather-apps.com/

Upvotes: 0

Related Questions