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?

Flutter最速の開発環境

0
Last updated at Posted at 2026-02-28

想定読者

  • macOS
  • Flutterのバージョンをプロジェクトごとに管理したい
  • fvm flutterとか打つのとかエイリアスつけて fvm使いたくない
  • パス通すとかがめんどくさい

miseをinstall

brew install mise

brew以外のやり方知りたい人はこちら

プロジェクトを作成

mkdir sample_app
cd sample_app

.tomlファイル作成

コマンドで作るならプロジェクトルートに

cat > mise.toml <<'EOF'
[tools]
flutter = "3.41.2"
EOF
mise.toml
[tools]
flutter = "3.41.2"
mise trust
  • flutter をintall
mise install

cocoapodsの関係で環境を揃える意味ではrubyを入れた方がいいかもしれないですが省略しています。

flutterプロジェクト作成

webはいらなかったのでplatformオプションを追加

flutter create --platforms ios,android .

pubspec.yamlを更新

綺麗にして、明示的にsdk: ">=3.11.0 <4.0.0" とだけ変更

pubspec.yaml
name: sample_app
description: "A new Flutter project."

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: ">=3.11.0 <4.0.0"

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.8

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^6.0.0

flutter:
  uses-material-design: true

参考

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?