#pub

26 commande(s) avec le tag #pub

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

Recherche un package sur pub.dev.

bash
flutter pub search nom_package
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
Flutter Upgrade majeur

Met à jour les dépendances en incluant les versions majeures.

bash
flutter pub upgrade --major-versions

Nettoie le projet et réinstalle toutes les dépendances.

bash
flutter clean && flutter pub 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

Publie les fichiers d'un package (config, migrations, vues).

bash
php artisan vendor:publish --provider="Vendor\Package\ServiceProvider"

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

Publie uniquement les fichiers de config d'un package.

bash
php artisan vendor:publish --tag=config

Liste les packages pouvant être mis à jour.

bash
flutter pub outdated

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

Récupère toutes les dépendances du pubspec.yaml.

bash
flutter pub get
Flutter Ajouter Bloc

Ajoute flutter_bloc pour la gestion d'état BLoC.

bash
flutter pub add flutter_bloc

Vide le cache global des packages pub.

bash
flutter pub cache clean

Répare les packages corrompus dans le cache.

bash
flutter pub cache repair

Met à jour toutes les dépendances vers leurs dernières versions compatibles.

bash
flutter pub upgrade