# パッケージ管理 (Flutter) > pubspec.yaml、pub.dev、dependencies、dev_dependencies、バージョニング、パッケージ作成 - 16 面接問題 - Mid-Level - [面接問題: Flutter](https://sharpskill.dev/ja/technologies/flutter/interview-questions.md) ## 1. Flutterプロジェクトで依存関係の設定を含むファイルはどれですか? **回答** pubspec.yamlファイルはDart/Flutterプロジェクトの中心的な設定ファイルです。プロジェクト名、バージョン、dependencies、dev_dependencies、アセット、その他のメタデータを含みます。このファイルはpubツールによって読み込まれ、必要なパッケージの解決とダウンロードに使われます。 ## 2. pubspec.yamlにおけるdependenciesとdev_dependenciesの違いは何ですか? **回答** dependenciesは本番環境でアプリケーションを実行するために必要なパッケージですが、dev_dependenciesは開発時のみ(テスト、コード生成、リンティング)使用されます。dev_dependenciesはアプリの最終ビルドに含まれないため、バンドルサイズを削減できます。 ## 3. パッケージのバージョンの前にある ^ 記号(例: ^1.2.3)は何を意味しますか? **回答** ^(キャレット)記号はセマンティックバージョニングに従った互換性のあるバージョン制約を示します。^1.2.3の場合、>= 1.2.3かつ< 2.0.0のすべてのバージョンを許可します。これにより、互換性のない可能性のあるメジャー変更を避けつつ、マイナーアップデートとパッチを自動的に受け取れます。 ## さらに13問利用可能 - pubspec.lockファイルの役割は何ですか? - pubspec.yamlで宣言された依存関係を取得するコマンドはどれですか? 無料で登録: https://sharpskill.dev/ja/login ## その他のFlutter面接トピック - [Dartの基礎](https://sharpskill.dev/ja/technologies/flutter/interview-questions/dart-basics.md): 25問, Junior - [Dart言語の基礎](https://sharpskill.dev/ja/technologies/flutter/interview-questions/dart-language-essentials.md): 15問, Junior - [Flutter の基礎](https://sharpskill.dev/ja/technologies/flutter/interview-questions/flutter-fundamentals.md): 18問, Junior - [ウィジェットのライフサイクル](https://sharpskill.dev/ja/technologies/flutter/interview-questions/widget-lifecycle.md): 20問, Junior - [ローカルストレージ](https://sharpskill.dev/ja/technologies/flutter/interview-questions/local-storage.md): 20問, Junior - [アプリケーションのライフサイクル](https://sharpskill.dev/ja/technologies/flutter/interview-questions/app-lifecycle.md): 20問, Junior - [Layouts & Constraints](https://sharpskill.dev/ja/technologies/flutter/interview-questions/layouts-constraints.md): 24問, Mid-Level - [ListView & GridView](https://sharpskill.dev/ja/technologies/flutter/interview-questions/listview-gridview.md): 25問, Mid-Level - [ナビゲーションとルーティング](https://sharpskill.dev/ja/technologies/flutter/interview-questions/navigation-routing.md): 22問, Mid-Level - [基本的な状態管理](https://sharpskill.dev/ja/technologies/flutter/interview-questions/state-management-basics.md): 22問, Mid-Level - [Provider パターン](https://sharpskill.dev/ja/technologies/flutter/interview-questions/provider-pattern.md): 18問, Mid-Level - [Networking & HTTP](https://sharpskill.dev/ja/technologies/flutter/interview-questions/networking-http.md): 20問, Mid-Level - [JSONシリアライゼーション](https://sharpskill.dev/ja/technologies/flutter/interview-questions/json-serialization.md): 20問, Mid-Level - [ローカルデータベース](https://sharpskill.dev/ja/technologies/flutter/interview-questions/local-database.md): 22問, Mid-Level - [フォームとバリデーション](https://sharpskill.dev/ja/technologies/flutter/interview-questions/forms-validation.md): 20問, Mid-Level - [アニメーション](https://sharpskill.dev/ja/technologies/flutter/interview-questions/animations.md): 20問, Mid-Level - [Firebase 統合](https://sharpskill.dev/ja/technologies/flutter/interview-questions/firebase-integration.md): 18問, Mid-Level - [ユニットテスト](https://sharpskill.dev/ja/technologies/flutter/interview-questions/unit-testing.md): 20問, Mid-Level - [ウィジェットテスト](https://sharpskill.dev/ja/technologies/flutter/interview-questions/widget-testing.md): 18問, Mid-Level - [ビルドとデプロイ](https://sharpskill.dev/ja/technologies/flutter/interview-questions/build-deployment.md): 16問, Mid-Level - [メモリとパフォーマンス](https://sharpskill.dev/ja/technologies/flutter/interview-questions/memory-performance.md): 22問, Senior - [Streams & RxDart](https://sharpskill.dev/ja/technologies/flutter/interview-questions/streams-rxdart.md): 24問, Senior - [高度なState Management](https://sharpskill.dev/ja/technologies/flutter/interview-questions/advanced-state-management.md): 26問, Senior - [Flutter Design Patterns](https://sharpskill.dev/ja/technologies/flutter/interview-questions/flutter-design-patterns.md): 24問, Senior - [パフォーマンス最適化](https://sharpskill.dev/ja/technologies/flutter/interview-questions/performance-optimization.md): 26問, Senior - [Platform Channels](https://sharpskill.dev/ja/technologies/flutter/interview-questions/platform-channels.md): 20問, Senior - [Custom Painting](https://sharpskill.dev/ja/technologies/flutter/interview-questions/custom-painting.md): 22問, Senior - [Flutterアプリケーションアーキテクチャ](https://sharpskill.dev/ja/technologies/flutter/interview-questions/flutter-app-architecture.md): 22問, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ja/technologies/flutter/interview-questions/package-management