
Set Up Your Flutter Project and Dependencies
May 30, 2025About 1 min
Set Up Your Flutter Project and Dependencies 관련
How to Build an AI-Powered Cooking Assistant with Flutter and Gemini
After soaking in everything shared at GoogleIO, I can’t lie - I feel supercharged! From What’s New in Flutter to Building Agentic Apps with Flutter and Firebase AI Logic, and the deep dive into How Flutter Makes the Most of Your Platforms, it felt li...
How to Build an AI-Powered Cooking Assistant with Flutter and Gemini
After soaking in everything shared at GoogleIO, I can’t lie - I feel supercharged! From What’s New in Flutter to Building Agentic Apps with Flutter and Firebase AI Logic, and the deep dive into How Flutter Makes the Most of Your Platforms, it felt li...
To begin, let's create a new Flutter project and set up the necessary dependencies in your pubspec.yaml
file.
First, create a new Flutter project by running:
flutter create snap2chef
cd snap2chef
Now, open pubspec.yaml
and add the following dependencies:
dependencies:
flutter:
sdk: flutter
google_generative_ai: ^0.4.7
permission_handler: ^12.0.0+1
file_picker: ^10.1.9
image_cropper: ^9.1.0
image_picker: ^1.1.2
path_provider: ^2.1.5
fluttertoast: ^8.2.12
gap: ^3.0.1
iconsax: ^0.0.8
dotted_border: ^2.1.0
youtube_player_flutter: ^9.1.1
flutter_markdown: ^0.7.7+1
loader_overlay: ^5.0.0
flutter_spinkit: ^5.2.1
cached_network_image: ^3.4.1
flutter_native_splash: ^2.4.4
flutter_launcher_icons: ^0.14.3
speech_to_text: ^7.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
build_runner: ^2.4.13
After adding the dependencies, run flutter pub get
in your terminal to fetch them:
flutter pub get