#add

15 commande(s) avec le tag #add

Commandes partagées par la communauté CodeBox, copiables en un clic.

Flutter Ajouter http

Ajoute le package http officiel Dart.

bash
flutter pub add http
Flutter Ajouter Freezed

Ajoute Freezed pour les classes immutables et la sérialisation JSON.

bash
flutter pub add freezed_annotation json_annotation && flutter pub add --dev freezed json_serializable build_runner
Flutter Ajouter GetX

Ajoute GetX pour state management, routing et DI.

bash
flutter pub add get

Ajoute Riverpod avec son générateur de code.

bash
flutter pub add flutter_riverpod riverpod_annotation && flutter pub add --dev riverpod_generator build_runner

Installe Firebase Core et configure le projet avec FlutterFire.

bash
flutter pub add firebase_core && flutterfire configure

Ajoute GoRouter pour la navigation déclarative.

bash
flutter pub add go_router

Ajoute Hive pour le stockage local léger et rapide.

bash
flutter pub add hive hive_flutter && flutter pub add --dev hive_generator build_runner

Ajoute Dio comme client HTTP avancé.

bash
flutter pub add dio

Ajoute sqflite pour la base de données SQLite locale.

bash
flutter pub add sqflite path
Flutter Ajouter Bloc

Ajoute flutter_bloc pour la gestion d'état BLoC.

bash
flutter pub add flutter_bloc

Ajoute Provider pour la gestion d'état simple.

bash
flutter pub add provider

Ajoute SharedPreferences pour le stockage clé/valeur simple.

bash
flutter pub add shared_preferences

Ajoute un package au projet et met à jour pubspec.yaml.

bash
flutter pub add nom_package

Ajoute un fichier à la zone de staging.

bash
git add fichier.txt

Ajoute tous les fichiers modifiés au staging.

bash
git add .