More than 5 years have passed since last update.
概要
- 公式のGetStartedをやって動くものが見えるまでの手順
- https://flutter.io/setup-macos/
前提
- 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の部分は無視した
アプリの作成/起動
- 以下のコマンドで雛形を作成できる
flutter create myapp
- シミュレータを起動させた状態で以下のコマンドを実行するとアプリを起動できる
- 起動までかなり長い
- 実機でもOK
flutter run
👁 スクリーンショット 2018-03-07 16.57.48.png
👁 スクリーンショット 2018-03-07 17.10.14.png
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
