Tech Sheets

Flutterアプリのひな形を作る

最終更新日:2022-05-08

Flutterのインストールが完了したら、早速アプリのひな形を作ってみましょう。

作業フォルダでflutter create コマンドを使用します。

$ flutter create demo
Creating project demo...
  demo/ios/Runner.xcworkspace/contents.xcworkspacedata (created)
  // ファイルリストは中略

  demo/.idea/workspace.xml (created)
Running "flutter packages get" in demo...                           4.5s
Wrote 66 files.

All done!
[✓] Flutter is fully installed. (Channel unknown, v1.5.7, on Mac OS X 10.14.3
    18D109, locale ja-JP)
[✓] Android toolchain - develop for Android devices is fully installed. (Android
    SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices is fully installed. (Xcode 10.1)
[!] Android Studio is partially installed; more components are available.
    (version 3.2)
[!] Android Studio is partially installed; more components are available.
[!] Android Studio is partially installed; more components are available.
[✓] VS Code is fully installed. (version 1.32.3)
[✓] Connected device is fully installed. (1 available)

Run "flutter doctor" for information about installing additional components.

In order to run your application, type:

  $ cd demo
  $ flutter run

Your application code is in demo/lib/main.dart.

All done! が表示されれば成功です。

一覧に戻る