0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【生成AI】Flutterの導入

Last updated at Posted at 2024-02-26

FlutterでToDoアプリを作成するためのプロジェクトを作成する方法について説明します。

  1. Flutter SDKのインストール: Flutterの開発には、まずFlutter SDKをインストールする必要があります。詳細については、Flutter公式サイトのインストールガイドを参照してください。

Flutter SDKをインストール

  1. システムの要件を確認する:
    FlutterはmacOS、Windows、またはLinuxで動作します。また、macOSの場合はIntelまたはApple Silicon(M1チップ)のいずれかがサポートされています。開発には推奨されるOSのバージョンを実行する必要があります。また、開発には適切なハードウェア要件を満たすことも重要です。

  2. Flutter SDKをダウンロードする:
    Flutter SDKは、Flutterの公式ウェブサイトからダウンロードできます。次のURLを開いて、最新バージョンのFlutter SDKをダウンロードしてください:Flutter SDK

  3. SDKの展開:
    ダウンロードしたFlutter SDKを展開します。適切な場所に展開し、パスを追加してください。例えば、Windowsの場合は C:\src\flutter などです。

  4. 環境変数の設定:
    Flutterコマンドを使えるように、システムの環境変数にFlutterの bin ディレクトリへのパスを追加します。通常、.bash_profile.bashrc、または .zshrc などのシェルの設定ファイルにパスを追加します。

    • Windowsの場合:
      set PATH="%PATH%;C:\src\flutter\bin"
      

パスが通ったことを確認

>flutter --version
Flutter 3.19.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision abb292a07e (6 days ago) • 2024-02-20 14:35:05 -0800
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ The Google Privacy Policy describes how data is handled in this service.   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ║                                                                            ║
  ║ To disable animations in this tool, use                                    ║
  ║ 'flutter config --no-cli-animations'.                                      ║
  ╚════════════════════════════════════════════════════════════════════════════╝


The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.

Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:

    flutter --disable-analytics

If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).

You have received two consent messages because the flutter tool is migrating to a new analytics system. Disabling
analytics collection will disable both the legacy and new analytics collection systems. You can disable analytics
reporting by running `flutter --disable-analytics`
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?