Build flutter app for desktops

13,743

Solution 1

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

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

Solution 2

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.

Solution 3

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

Share:
13,743

Related videos on Youtube

Rémi Rousselet
Author by

Rémi Rousselet

Dart makes my heart Flutter Some interesting Flutter topics: https://medium.com/@darky12s/flutter-reducing-widgets-boilerplate-3e635f10685e Custom width/height property for a widget are ignored Controlling State from outside of a StatefulWidget What are Keys in the Stateless widgets class? What is the difference between functions and classes to create widgets? How to deal with unwanted widget build? Understanding Flutter Render Engine Navigator operation requested with a context that does not include a Navigator What is the relation between stateful and stateless widgets in Flutter? Passing Data to a Stateful Widget

Updated on September 14, 2022

Comments

  • Rémi Rousselet
    Rémi Rousselet over 1 year

    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

    • Günter Zöchbauer
      Günter Zöchbauer over 6 years
      It's currently definitely not officially supported. Hixie posted a link in Gitter for build instructions the last 3 weeks or so as far as I know. It shouldn't be too hard on Linux and OSx as far as I remember, more work would be necessary for Windows.