Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Flutter Desktop Launcher for Mac OS/Linux, support hot reload via VS Code

Notifications You must be signed in to change notification settings

putraxor/flutter_desktop_launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Desktop Launcher

Flutter Desktop Mac OS Launcher

Getting Started

You can view how to setup this launcher on Youtube: Run Flutter on Desktop Platform without Emulator.

Flutter Desktop Hot Reload

How to setup for VSCode:

  • Download for Linux/Debian or Mac OS

  • Extract zip archive

  • Copy Flutter.app (Mac) / linux_launcher + all files (Linux) to your project

  • Modify your main.dart add target platform to Fuchsia

    import 'package:flutter/foundation.dart'
    
    show debugDefaultTargetPlatformOverride; // for desktop embedder
    
    void main() {
      debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia; // for desktop embedder
      runApp(MyApp());
    }
  • Build flutter bundle inside your project flutter build bundle

  • Run Flutter.app or ./linux_launcher

  • In VS Code create Launch Configuration:

    {
      "version": "0.2.0",
      "configurations": [
        {
          "name": "Flutter Desktop",
          "request": "attach",
          "deviceId": "flutter-tester",
          "observatoryUri": "http://127.0.0.1:49494/",
          "type": "dart"
        }
      ]
    }
  • Run Flutter Desktop now Hot Reload is working

How to setup for Android Studio:

  • Flutter Desktop on Android Studio

About

Flutter Desktop Launcher for Mac OS/Linux, support hot reload via VS Code

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •