Build flutter app for desktops

后端 未结 4 1460
北海茫月
北海茫月 2021-02-07 14:39

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 flutt

相关标签:
4条回答
  • 2021-02-07 15:11

    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/

    0 讨论(0)
  • 2021-02-07 15:14

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

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

    0 讨论(0)
  • 2021-02-07 15:17

    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.

    0 讨论(0)
  • 2021-02-07 15:26

    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

    0 讨论(0)
提交回复
热议问题