VOOZH about

URL: https://qiita.com/ozaki25/items/1d8701f8f4b8e9e20b0d

⇱ FlutterでHelloWorldを動かすまで #Flutter - Qiita


👁 Image
4

Go to list of users who liked

1

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@ozaki25

FlutterでHelloWorldを動かすまで

4
Last updated at Posted at 2018-03-07

概要

前提

  • OSはmac
  • Xcode/AndroidStudioはインストール済

Flutterのインストール

  • 以下のコマンドでインストール&パスを通す
git clone -b beta https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
  • flutter --versionが動けばOK
  • exportは適宜.bashrcなり.zshrcに書いておく

その他のライブラリインストール

  • 以下のコマンドを叩くと足りていないライブラリを教えてくれる
    • 結果が出るまでかなり時間かかった
flutter doctor
  • 自分の場合は以下のコマンドを実行しろと言われたので実行
brew install --HEAD libimobiledevice
brew install ideviceinstaller
brew install ios-deploy
  • IDEに関しては使わないものは無視して問題なし
    • 自分の場合VSCodeを使うのでIntelliJの部分は無視した
👁 スクリーンショット 2018-03-07 16.48.04.png

アプリの作成/起動

  • 以下のコマンドで雛形を作成できる
flutter create myapp
  • シミュレータを起動させた状態で以下のコマンドを実行するとアプリを起動できる
    • 起動までかなり長い
    • 実機でもOK
flutter run

👁 スクリーンショット 2018-03-07 16.57.48.png
👁 スクリーンショット 2018-03-07 17.10.14.png

4

Go to list of users who liked

1
0

Go to list of comments

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
4

Go to list of users who liked

1