Skip to content

Run flutter application on Windows and Linux and Mac OS. support hot reload.

License

Notifications You must be signed in to change notification settings

var-rain/Flutter-Desktop

Repository files navigation

Flutter Desktop

Special thanks

go-flutter

Screenshot

hot_reload hot_reload

Feature

  • Support Hot Reload. (Test Only Visual Studio Code)
  • Support Windows and Linux and Mac OS. (go-flutter)
  • Support window title.
  • Support Text input.
  • Support Clipboard. (through shortcuts and UI)
  • Support Configuration file.
  • More...

Deploy

  • Download release version.
  • Extract the file to your path.
  • Edit main method.
  • Edit config.json.
import 'package:flutter/foundation.dart'
    show debugDefaultTargetPlatformOverride;

void main() {
    // must
    debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
    runApp(MyApp());
}
  • Run launcher.exe.
  • Run with Visual Studio Code.

Configuration File

{
  "Width": 480,
  "Height": 800,
  "MinWidth": 480,
  "MinHeight": 800,
  "MaxWidth": 480,
  "MaxHeight": 800,
  "Ratio": 1.0,
  "Mode": 0,
  "Project": "example",
  "ARGS": [
    "--dart-non-checked-mode",
    "--observatory-port=50300"
  ]
}