LoginSignup
1
1

More than 3 years have passed since last update.

[Flutter] 令和を初めて、WindowsでDesktop Embedding使ってみた。

Posted at

皆様こんにちは~~令和!始まりました
令和最初のポストはFlutterです。Flutterを使ってDesktopアプリも動かす!こと、
ご存知でしょうか?

意外と簡単でした。最初はなんかBuildしたり、gnやninjaインストールしたりして、大変でした。

試した結果から

image.png

方法。

Cloneしましょう。


> git clone https://github.com/flutter/flutter
> git clone https://github.com/google/flutter-desktop-embedding

example Folderに移動します。

image.png

Terminalでこれを


> set ENABLE_FLUTTER_DESKTOP=true

pubspec.yaml

environment:
  sdk: '>=2.0.0 <3.0.0'

後、Flutter run だけ、

> flutter run 

Launching lib/main.dart on Windows in debug mode...
Building Windows application...
Syncing files to device Windows...                               1,181ms

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state),
press "R".

軽くて早くていいです。
fuchsia 時代来るのか?

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1