【Flutter】プロジェクト作成方法

基本のコマンド

$ flutter create プロジェクト名

こいつを書けばとりあえず作成される。

 

オプション

使いそうな設定のみ紹介。基本のコマンドの後ろに追記する。

company domain

$ -–org ドメイン名

Androidのパッケージ名(iOSのバンドルID)として利用される。

description

$ –-description 説明文

pubspec.yamlのdescriptionやREADME.mdに記述される。

iOS ネイティブコードの言語

$ -i swift

swiftまたはobjcを指定する。デフォルトはObjective-C

Android ネイティブコードの言語

$ -a kotlin

kotlinまたはjavaを指定する。デフォルトはJava

 

コマンド例

$ flutter create test_app --org io.github.delicateribs -description A new Flutter app -i swift -a java