Compare commits

..

No commits in common. "5ad019d35e08f7df3b75a7741d28b8ccc90de166" and "3e6a81c2c3b43e2a4ddf400b63dab722e4eedab8" have entirely different histories.

8 changed files with 4460 additions and 4362 deletions

View File

@ -8,8 +8,7 @@ plugins {
android { android {
namespace = "com.example.my_app" namespace = "com.example.my_app"
compileSdk = flutter.compileSdkVersion compileSdk = flutter.compileSdkVersion
ndkVersion = "26.3.11579264" ndkVersion = flutter.ndkVersion
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_11

View File

@ -1464,12 +1464,12 @@ class AppDatabase {
commandeMap['clientId'] = clientId; commandeMap['clientId'] = clientId;
final commandeFields = commandeMap.keys.join(', '); final commandeFields = commandeMap.keys.join(', ');
final commandePlaceholders = List.filled(commandeMap.length, '?').join(', '); final commandePlaceholders =
List.filled(commandeMap.length, '?').join(', ');
final commandeResult = await db.query( final commandeResult = await db.query(
'INSERT INTO commandes ($commandeFields) VALUES ($commandePlaceholders)', 'INSERT INTO commandes ($commandeFields) VALUES ($commandePlaceholders)',
commandeMap.values.toList(), commandeMap.values.toList());
);
final commandeId = commandeResult.insertId!; final commandeId = commandeResult.insertId!;
// 3. Créer les détails de commande avec remises // 3. Créer les détails de commande avec remises
@ -1479,18 +1479,16 @@ class AppDatabase {
detailMap['commandeId'] = commandeId; detailMap['commandeId'] = commandeId;
final detailFields = detailMap.keys.join(', '); final detailFields = detailMap.keys.join(', ');
final detailPlaceholders = List.filled(detailMap.length, '?').join(', '); final detailPlaceholders =
List.filled(detailMap.length, '?').join(', ');
await db.query( await db.query(
'INSERT INTO details_commandes ($detailFields) VALUES ($detailPlaceholders)', 'INSERT INTO details_commandes ($detailFields) VALUES ($detailPlaceholders)',
detailMap.values.toList(), detailMap.values.toList());
);
// 4. Mettre à jour le stock // 4. Mettre à jour le stock
await db.query( await db.query('UPDATE products SET stock = stock - ? WHERE id = ?',
'UPDATE products SET stock = stock - ? WHERE id = ?', [detail.quantite, detail.produitId]);
[detail.quantite, detail.produitId],
);
} }
await db.query('COMMIT'); await db.query('COMMIT');
@ -1500,8 +1498,7 @@ class AppDatabase {
print("Erreur lors de la création de la commande complète: $e"); print("Erreur lors de la création de la commande complète: $e");
rethrow; rethrow;
} }
} }
// Méthode pour mettre à jour un détail de commande (utile pour modifier les remises) // Méthode pour mettre à jour un détail de commande (utile pour modifier les remises)
Future<int> updateDetailCommande(DetailCommande detail) async { Future<int> updateDetailCommande(DetailCommande detail) async {

View File

@ -52,7 +52,6 @@ class _ApprobationSortiesPageState extends State<ApprobationSortiesPage> {
Text('Quantité: ${sortie['quantite']}'), Text('Quantité: ${sortie['quantite']}'),
Text('Demandeur: ${sortie['admin_nom']}'), Text('Demandeur: ${sortie['admin_nom']}'),
Text('Motif: ${sortie['motif']}'), Text('Motif: ${sortie['motif']}'),
Text('Note: ${sortie['notes']}'),
const SizedBox(height: 16), const SizedBox(height: 16),
const Text( const Text(
'Confirmer l\'approbation de cette demande de sortie personnelle ?', 'Confirmer l\'approbation de cette demande de sortie personnelle ?',

View File

@ -289,13 +289,9 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
? await _database.getUserById(commande.validateurId!) ? await _database.getUserById(commande.validateurId!)
: null; : null;
// DEBUG: Vérifiez combien de détails vous avez final iconPhone = await buildIconPhoneText();
print('=== DEBUG BON DE LIVRAISON ==='); final iconChecked = await buildIconCheckedText();
print('Nombre de détails récupérés: ${details.length}'); final iconGlobe = await buildIconGlobeText();
for (int i = 0; i < details.length; i++) {
print('Détail $i: ${details[i].produitNom} x${details[i].quantite}');
}
double sousTotal = 0; double sousTotal = 0;
double totalRemises = 0; double totalRemises = 0;
@ -312,72 +308,43 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
} }
} }
// CORRECTION PRINCIPALE: Améliorer la récupération des produits
final List<Map<String, dynamic>> detailsAvecProduits = []; final List<Map<String, dynamic>> detailsAvecProduits = [];
for (final detail in details) {
for (int i = 0; i < details.length; i++) {
final detail = details[i];
print('Traitement détail $i: ${detail.produitNom}');
try {
final produit = await _database.getProductById(detail.produitId); final produit = await _database.getProductById(detail.produitId);
if (produit != null) {
detailsAvecProduits.add({ detailsAvecProduits.add({
'detail': detail, 'detail': detail,
'produit': produit, 'produit': produit,
}); });
print(' ✅ Produit trouvé: ${produit.name}');
} else {
// Même si le produit est null, on l'ajoute quand même avec les infos du détail
detailsAvecProduits.add({
'detail': detail,
'produit': null, // On garde null mais on utilisera les infos du détail
});
print(' ⚠️ Produit non trouvé, utilisation des données du détail');
} }
} catch (e) {
print(' ❌ Erreur lors de la récupération du produit: $e');
// En cas d'erreur, on ajoute quand même le détail
detailsAvecProduits.add({
'detail': detail,
'produit': null,
});
}
}
print('Total detailsAvecProduits: ${detailsAvecProduits.length}');
final pdf = pw.Document(); final pdf = pw.Document();
final imageBytes = await loadImage(); final imageBytes = await loadImage();
final image = pw.MemoryImage(imageBytes); final image = pw.MemoryImage(imageBytes);
final italicFont =
pw.Font.ttf(await rootBundle.load('assets/fonts/Roboto-Italic.ttf'));
// AMÉLIORATION: Gestion des polices avec fallback // Tailles de texte agrandies pour une meilleure lisibilité
pw.Font? italicFont; final tinyTextStyle = pw.TextStyle(fontSize: 9);
pw.Font? regularFont; final smallTextStyle = pw.TextStyle(fontSize: 10);
final normalTextStyle = pw.TextStyle(fontSize: 11);
final boldTextStyle =
pw.TextStyle(fontSize: 11, fontWeight: pw.FontWeight.bold);
final boldClientStyle =
pw.TextStyle(fontSize: 12, fontWeight: pw.FontWeight.bold);
final frameTextStyle = pw.TextStyle(fontSize: 10);
final italicTextStyle = pw.TextStyle(
fontSize: 9, fontWeight: pw.FontWeight.bold, font: italicFont);
final italicLogoStyle = pw.TextStyle(
fontSize: 8, fontWeight: pw.FontWeight.bold, font: italicFont);
final titleStyle =
pw.TextStyle(fontSize: 14, fontWeight: pw.FontWeight.bold);
final headerStyle =
pw.TextStyle(fontSize: 12, fontWeight: pw.FontWeight.bold);
try { // Fonction pour créer un exemplaire en mode paysage
italicFont = pw.Font.ttf(await rootBundle.load('assets/fonts/Roboto-Italic.ttf'));
regularFont = pw.Font.ttf(await rootBundle.load('assets/fonts/Roboto-Regular.ttf'));
} catch (e) {
print('⚠️ Impossible de charger les polices personnalisées: $e');
// Utiliser les polices par défaut
}
// DÉFINITION DES STYLES DE TEXTE - Variables globales dans la fonction
final tinyTextStyle = pw.TextStyle(fontSize: 9, font: regularFont);
final smallTextStyle = pw.TextStyle(fontSize: 10, font: regularFont);
final normalTextStyle = pw.TextStyle(fontSize: 11, font: regularFont);
final boldTextStyle = pw.TextStyle(fontSize: 11, fontWeight: pw.FontWeight.bold, font: regularFont);
final boldClientStyle = pw.TextStyle(fontSize: 12, fontWeight: pw.FontWeight.bold, font: regularFont);
final frameTextStyle = pw.TextStyle(fontSize: 10, font: regularFont);
final italicTextStyle = pw.TextStyle(fontSize: 9, fontWeight: pw.FontWeight.bold, font: italicFont ?? regularFont);
final italicLogoStyle = pw.TextStyle(fontSize: 8, fontWeight: pw.FontWeight.bold, font: italicFont ?? regularFont);
// Fonction pour créer un exemplaire - CORRIGÉE
pw.Widget buildExemplaire(String typeExemplaire) { pw.Widget buildExemplaire(String typeExemplaire) {
return pw.Container( return pw.Container(
// PAS DE HAUTEUR FIXE - Elle s'adapte au contenu height: 380, // Hauteur ajustée pour le mode paysage
width: double.infinity, width: double.infinity,
decoration: pw.BoxDecoration( decoration: pw.BoxDecoration(
border: pw.Border.all(color: PdfColors.black, width: 1.5), border: pw.Border.all(color: PdfColors.black, width: 1.5),
@ -390,7 +357,9 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
width: double.infinity, width: double.infinity,
padding: const pw.EdgeInsets.all(5), padding: const pw.EdgeInsets.all(5),
decoration: pw.BoxDecoration( decoration: pw.BoxDecoration(
color: typeExemplaire == "CLIENT" ? PdfColors.blue100 : PdfColors.green100, color: typeExemplaire == "CLIENT"
? PdfColors.blue100
: PdfColors.green100,
), ),
child: pw.Center( child: pw.Center(
child: pw.Text( child: pw.Text(
@ -398,19 +367,21 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 14, fontSize: 14,
fontWeight: pw.FontWeight.bold, fontWeight: pw.FontWeight.bold,
color: typeExemplaire == "CLIENT" ? PdfColors.blue800 : PdfColors.green800, color: typeExemplaire == "CLIENT"
font: regularFont, ? PdfColors.blue800
: PdfColors.green800,
), ),
), ),
), ),
), ),
pw.Padding( pw.Expanded(
child: pw.Padding(
padding: const pw.EdgeInsets.all(8), padding: const pw.EdgeInsets.all(8),
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment: pw.CrossAxisAlignment.start,
children: [ children: [
// En-tête principal (logo, infos entreprise, client) // En-tête principal
pw.Row( pw.Row(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment: pw.CrossAxisAlignment.start,
mainAxisAlignment: pw.MainAxisAlignment.spaceBetween, mainAxisAlignment: pw.MainAxisAlignment.spaceBetween,
@ -425,16 +396,26 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
child: pw.Image(image), child: pw.Image(image),
), ),
pw.SizedBox(height: 3), pw.SizedBox(height: 3),
pw.Text('NOTRE COMPETENCE, A VOTRE SERVICE', style: italicLogoStyle), pw.Text('NOTRE COMPETENCE, A VOTRE SERVICE',
style: italicLogoStyle),
pw.SizedBox(height: 4), pw.SizedBox(height: 4),
pw.Column( pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment: pw.CrossAxisAlignment.start,
children: [ children: [
pw.Text('REMAX Andravoangy', style: tinyTextStyle), pw.Text('📍 REMAX Andravoangy',
pw.Text('SUPREME CENTER Behoririka \n BOX 405 | 416 | 119', style: tinyTextStyle), style: tinyTextStyle),
pw.Text('Tripolisa analankely BOX 7', style: tinyTextStyle), pw.Text(
pw.Text('033 37 808 18', style: tinyTextStyle), '📍 SUPREME CENTER Behoririka \n BOX 405 | 416 | 119',
pw.Text('www.guycom.mg', style: tinyTextStyle), style: tinyTextStyle),
pw.Text('📍 Tripolisa analankely BOX 7',
style: tinyTextStyle),
pw.Text('📞 033 37 808 18',
style: tinyTextStyle),
pw.Text('🌐 www.guycom.mg',
style: tinyTextStyle),
pw.SizedBox(height: 2),
// pw.Text('NIF: 4000106673 - STAT 95210 11 2017 1 003651',
// style: pw.TextStyle(fontSize: 7, fontWeight: pw.FontWeight.bold)),
], ],
), ),
], ],
@ -444,9 +425,12 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
pw.Column( pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.center, crossAxisAlignment: pw.CrossAxisAlignment.center,
children: [ children: [
pw.Text('Date: ${DateFormat('dd/MM/yyyy').format(DateTime.now())}', style: boldClientStyle), pw.Text(
'Date: ${DateFormat('dd/MM/yyyy').format(DateTime.now())}',
style: boldClientStyle),
pw.SizedBox(height: 4), pw.SizedBox(height: 4),
pw.Container(width: 100, height: 2, color: PdfColors.black), pw.Container(
width: 100, height: 2, color: PdfColors.black),
pw.SizedBox(height: 4), pw.SizedBox(height: 4),
pw.Container( pw.Container(
padding: const pw.EdgeInsets.all(6), padding: const pw.EdgeInsets.all(6),
@ -456,10 +440,13 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
child: pw.Column( child: pw.Column(
children: [ children: [
pw.Text('Boutique:', style: frameTextStyle), pw.Text('Boutique:', style: frameTextStyle),
pw.Text('${pointDeVente?['nom'] ?? 'S405A'}', style: boldTextStyle), pw.Text('${pointDeVente?['nom'] ?? 'S405A'}',
style: boldTextStyle),
pw.SizedBox(height: 2), pw.SizedBox(height: 2),
pw.Text('Bon N°:', style: frameTextStyle), pw.Text('Bon N°:', style: frameTextStyle),
pw.Text('${pointDeVente?['nom'] ?? 'S405A'}-P${commande.id}', style: boldTextStyle), pw.Text(
'${pointDeVente?['nom'] ?? 'S405A'}-P${commande.id}',
style: boldTextStyle),
], ],
), ),
), ),
@ -470,7 +457,8 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
pw.Container( pw.Container(
width: 120, width: 120,
decoration: pw.BoxDecoration( decoration: pw.BoxDecoration(
border: pw.Border.all(color: PdfColors.black, width: 1), border:
pw.Border.all(color: PdfColors.black, width: 1),
), ),
padding: const pw.EdgeInsets.all(6), padding: const pw.EdgeInsets.all(6),
child: pw.Column( child: pw.Column(
@ -478,11 +466,20 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
children: [ children: [
pw.Text('CLIENT', style: frameTextStyle), pw.Text('CLIENT', style: frameTextStyle),
pw.SizedBox(height: 2), pw.SizedBox(height: 2),
pw.Text('ID: ${pointDeVente?['nom'] ?? 'S405A'}-${client?.id ?? 'Non spécifié'}', style: smallTextStyle), pw.Text(
pw.Container(width: 100, height: 1, color: PdfColors.black, margin: const pw.EdgeInsets.symmetric(vertical: 2)), 'ID: ${pointDeVente?['nom'] ?? 'S405A'}-${client?.id ?? 'Non spécifié'}',
pw.Text('${client?.nom} ${client?.prenom}', style: boldTextStyle), style: smallTextStyle),
pw.Container(
width: 100,
height: 1,
color: PdfColors.black,
margin: const pw.EdgeInsets.symmetric(
vertical: 2)),
pw.Text('${client?.nom} \n ${client?.prenom}',
style: boldTextStyle),
pw.SizedBox(height: 2), pw.SizedBox(height: 2),
pw.Text(client?.telephone ?? 'Non spécifié', style: tinyTextStyle), pw.Text(client?.telephone ?? 'Non spécifié',
style: tinyTextStyle),
], ],
), ),
), ),
@ -491,245 +488,219 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
pw.SizedBox(height: 8), pw.SizedBox(height: 8),
// SOLUTION PRINCIPALE: Tableau avec hauteur dynamique // Tableau des produits (ajusté pour le mode paysage)
pw.Column( pw.Expanded(
children: [ child: pw.Table(
// Debug: Afficher le nombre d'articles
pw.Text('Articles trouvés: ${detailsAvecProduits.length}',
style: pw.TextStyle(fontSize: 8, color: PdfColors.grey, font: regularFont)),
pw.SizedBox(height: 5),
// TABLE SANS CONTRAINTE DE HAUTEUR - Elle s'adapte au contenu
pw.Table(
border: pw.TableBorder.all(width: 1), border: pw.TableBorder.all(width: 1),
columnWidths: { columnWidths: {
0: const pw.FlexColumnWidth(5), // Désignations 0: const pw.FlexColumnWidth(5),
1: const pw.FlexColumnWidth(1.2), // Quantité 1: const pw.FlexColumnWidth(1.2),
2: const pw.FlexColumnWidth(1.5), // Prix unitaire 2: const pw.FlexColumnWidth(1.5),
3: const pw.FlexColumnWidth(1.5), // Montant 3: const pw.FlexColumnWidth(1.5),
4: const pw.FlexColumnWidth(1.5),
}, },
children: [ children: [
// En-tête du tableau
pw.TableRow( pw.TableRow(
decoration: const pw.BoxDecoration(color: PdfColors.grey200), decoration: const pw.BoxDecoration(
color: PdfColors.grey200),
children: [ children: [
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Text('Désignations', style: boldTextStyle) child: pw.Text('Désignations',
), style: boldTextStyle)),
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Text('Qté', style: boldTextStyle, textAlign: pw.TextAlign.center) child: pw.Text('Qté',
), style: boldTextStyle,
textAlign: pw.TextAlign.center)),
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Text('P.U.', style: boldTextStyle, textAlign: pw.TextAlign.right) child: pw.Text('P.U.',
), style: boldTextStyle,
textAlign: pw.TextAlign.right)),
// pw.Padding(padding: const pw.EdgeInsets.all(3),
// child: pw.Text('Remise/Cadeau', style: boldTextStyle, textAlign: pw.TextAlign.center)),
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Text('Montant', style: boldTextStyle, textAlign: pw.TextAlign.right) child: pw.Text('Montant',
), style: boldTextStyle,
textAlign: pw.TextAlign.right)),
], ],
), ),
...detailsAvecProduits.map((item) {
// TOUTES LES LIGNES DE PRODUITS - SANS LIMITATION
...detailsAvecProduits.asMap().entries.map((entry) {
final index = entry.key;
final item = entry.value;
final detail = item['detail'] as DetailCommande; final detail = item['detail'] as DetailCommande;
final produit = item['produit']; final produit = item['produit'];
// Debug pour chaque ligne
print('📋 Ligne PDF $index: ${detail.produitNom} (Quantité: ${detail.quantite})');
return pw.TableRow( return pw.TableRow(
decoration: detail.estCadeau decoration: detail.estCadeau
? const pw.BoxDecoration(color: PdfColors.green50) ? const pw.BoxDecoration(
color: PdfColors.green50)
: detail.aRemise : detail.aRemise
? const pw.BoxDecoration(color: PdfColors.orange50) ? const pw.BoxDecoration(
: index % 2 == 0 color: PdfColors.orange50)
? const pw.BoxDecoration(color: PdfColors.grey50)
: null, : null,
children: [ children: [
// Colonne Désignations - Plus compacte
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment:
mainAxisSize: pw.MainAxisSize.min, pw.CrossAxisAlignment.start,
children: [ children: [
// Nom du produit avec badge
pw.Row( pw.Row(
children: [ children: [
pw.Expanded( pw.Expanded(
child: pw.Text( child: pw.Text(
'${detail.produitNom ?? 'Produit inconnu'}', detail.produitNom ??
'Produit inconnu',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 10, fontSize: 10,
fontWeight: pw.FontWeight.bold, fontWeight:
font: regularFont pw.FontWeight.bold)),
)
),
), ),
if (detail.estCadeau) if (detail.estCadeau)
pw.Container( pw.Container(
padding: const pw.EdgeInsets.symmetric(horizontal: 3, vertical: 1), padding:
const pw.EdgeInsets.symmetric(
horizontal: 2,
vertical: 1),
decoration: pw.BoxDecoration( decoration: pw.BoxDecoration(
color: PdfColors.green600, color: PdfColors.green,
borderRadius: pw.BorderRadius.circular(3), borderRadius:
pw.BorderRadius.circular(2),
), ),
child: pw.Text( child: pw.Text('🎁',
'CADEAU',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 6, fontSize: 5,
color: PdfColors.white, color: PdfColors.white)),
font: regularFont,
fontWeight: pw.FontWeight.bold
)
),
), ),
], ],
), ),
if (produit?.category != null &&
pw.SizedBox(height: 2), produit!.category.isNotEmpty)
// Informations complémentaires sur une seule ligne
pw.Text( pw.Text(
[ '${produit.category}${produit?.marque != null && produit!.marque.isNotEmpty ? ' - ${produit.marque}' : ''}',
if (produit?.category?.isNotEmpty == true) produit!.category, style: tinyTextStyle),
if (produit?.marque?.isNotEmpty == true) produit!.marque, if (produit?.imei != null &&
if (produit?.imei?.isNotEmpty == true) 'IMEI: ${produit!.imei}', produit!.imei!.isNotEmpty)
].where((info) => info != null).join(' , '), pw.Text('IMEI: ${produit.imei}',
style: pw.TextStyle(fontSize: 8, color: PdfColors.grey700, font: regularFont), style: tinyTextStyle),
), pw.Row(
children: [
// Spécifications techniques if (produit?.ram != null &&
if (produit?.ram?.isNotEmpty == true || produit?.memoireInterne?.isNotEmpty == true || produit?.reference?.isNotEmpty == true) produit!.ram!.isNotEmpty)
pw.Text('${produit.ram}',
style: smallTextStyle),
if (produit?.memoireInterne != null &&
produit!
.memoireInterne!.isNotEmpty)
pw.Text( pw.Text(
[ ' | ${produit.memoireInterne}',
if (produit?.ram?.isNotEmpty == true) 'RAM: ${produit!.ram}', style: smallTextStyle),
if (produit?.memoireInterne?.isNotEmpty == true) 'Stockage: ${produit!.memoireInterne}', pw.Text(' | ${produit.reference}',
if (produit?.reference?.isNotEmpty == true) 'Ref: ${produit!.reference}', style: smallTextStyle),
].join(' , '), ],
style: pw.TextStyle(fontSize: 8, color: PdfColors.grey600, font: regularFont),
), ),
], ],
), ),
), ),
// Colonne Quantité
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Text( child: pw.Text('${detail.quantite}',
'${detail.quantite}',
style: normalTextStyle, style: normalTextStyle,
textAlign: pw.TextAlign.center textAlign: pw.TextAlign.center),
), ),
),
// Colonne Prix Unitaire
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.end, crossAxisAlignment:
mainAxisSize: pw.MainAxisSize.min, pw.CrossAxisAlignment.end,
children: [ children: [
if (detail.estCadeau) ...[ if (detail.estCadeau) ...[
pw.Text( pw.Text(
'${detail.prixUnitaire.toStringAsFixed(0)}', '${detail.prixUnitaire.toStringAsFixed(0)}',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 8, fontSize: 8,
decoration: pw.TextDecoration.lineThrough, decoration: pw
color: PdfColors.grey600, .TextDecoration.lineThrough,
font: regularFont color: PdfColors.grey600)),
) pw.Text('GRATUIT',
),
pw.Text(
'GRATUIT',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 9, fontSize: 9,
color: PdfColors.green700, color: PdfColors.green700,
fontWeight: pw.FontWeight.bold, fontWeight:
font: regularFont pw.FontWeight.bold)),
)
),
] else if (detail.aRemise) ...[ ] else if (detail.aRemise) ...[
pw.Text( pw.Text(
'${detail.prixUnitaire.toStringAsFixed(0)}', '${detail.prixUnitaire.toStringAsFixed(0)}',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 8, fontSize: 8,
decoration: pw.TextDecoration.lineThrough, decoration: pw
color: PdfColors.grey600, .TextDecoration.lineThrough,
font: regularFont color: PdfColors.grey600)),
)
),
pw.Text( pw.Text(
'${(detail.prixFinal / detail.quantite).toStringAsFixed(0)}', '${(detail.prixFinal / detail.quantite).toStringAsFixed(0)}',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 10, fontSize: 9,
color: PdfColors.orange700, color: PdfColors.orange)),
fontWeight: pw.FontWeight.bold,
font: regularFont
)
),
] else ] else
pw.Text( pw.Text(
'${detail.prixUnitaire.toStringAsFixed(0)}', '${detail.prixUnitaire.toStringAsFixed(0)}',
style: smallTextStyle style: smallTextStyle),
),
], ],
), ),
), ),
// pw.Padding(
// Colonne Montant // padding: const pw.EdgeInsets.all(3),
// child: pw.Text(
// detail.estCadeau
// ? 'CADEAU'
// : detail.aRemise
// ? 'REMISE'
// : '-',
// style: pw.TextStyle(
// fontSize: 9,
// color: detail.estCadeau ? PdfColors.green700 : detail.aRemise ? PdfColors.orange : PdfColors.grey600,
// fontWeight: detail.estCadeau ? pw.FontWeight.bold : pw.FontWeight.normal,
// ),
// textAlign: pw.TextAlign.center,
// ),
// ),
pw.Padding( pw.Padding(
padding: const pw.EdgeInsets.all(4), padding: const pw.EdgeInsets.all(3),
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.end, crossAxisAlignment:
mainAxisSize: pw.MainAxisSize.min, pw.CrossAxisAlignment.end,
children: [ children: [
if (detail.estCadeau) ...[ if (detail.estCadeau) ...[
pw.Text( pw.Text(
'${detail.sousTotal.toStringAsFixed(0)}', '${detail.sousTotal.toStringAsFixed(0)}',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 8, fontSize: 8,
decoration: pw.TextDecoration.lineThrough, decoration: pw
color: PdfColors.grey600, .TextDecoration.lineThrough,
font: regularFont color: PdfColors.grey600)),
) pw.Text('GRATUIT',
),
pw.Text(
'GRATUIT',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 9, fontSize: 9,
fontWeight: pw.FontWeight.bold, fontWeight: pw.FontWeight.bold,
color: PdfColors.green700, color: PdfColors.green700)),
font: regularFont
)
),
] else if (detail.aRemise) ...[ ] else if (detail.aRemise) ...[
pw.Text( pw.Text(
'${detail.sousTotal.toStringAsFixed(0)}', '${detail.sousTotal.toStringAsFixed(0)}',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 8, fontSize: 8,
decoration: pw.TextDecoration.lineThrough, decoration: pw
color: PdfColors.grey600, .TextDecoration.lineThrough,
font: regularFont color: PdfColors.grey600)),
)
),
pw.Text( pw.Text(
'${detail.prixFinal.toStringAsFixed(0)}', '${detail.prixFinal.toStringAsFixed(0)}',
style: pw.TextStyle( style: pw.TextStyle(
fontSize: 10, fontSize: 9,
fontWeight: pw.FontWeight.bold, fontWeight:
font: regularFont pw.FontWeight.bold)),
)
),
] else ] else
pw.Text( pw.Text(
'${detail.prixFinal.toStringAsFixed(0)}', '${detail.prixFinal.toStringAsFixed(0)}',
style: smallTextStyle style: smallTextStyle),
),
], ],
), ),
), ),
@ -738,12 +709,11 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
}).toList(), }).toList(),
], ],
), ),
],
), ),
pw.SizedBox(height: 12), pw.SizedBox(height: 8),
// Section finale - Totaux et signatures // Section finale (ajustée pour le mode paysage)
pw.Row( pw.Row(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment: pw.CrossAxisAlignment.start,
children: [ children: [
@ -757,55 +727,89 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
pw.Row( pw.Row(
mainAxisAlignment: pw.MainAxisAlignment.end, mainAxisAlignment: pw.MainAxisAlignment.end,
children: [ children: [
pw.Text('SOUS-TOTAL:', style: smallTextStyle), pw.Text('SOUS-TOTAL:',
style: smallTextStyle),
pw.SizedBox(width: 10), pw.SizedBox(width: 10),
pw.Text('${sousTotal.toStringAsFixed(0)}', style: smallTextStyle), pw.Text('${sousTotal.toStringAsFixed(0)}',
style: smallTextStyle),
], ],
), ),
pw.SizedBox(height: 2), pw.SizedBox(height: 2),
], ],
if (totalRemises > 0) ...[ if (totalRemises > 0) ...[
pw.Row( pw.Row(
mainAxisAlignment: pw.MainAxisAlignment.end, mainAxisAlignment: pw.MainAxisAlignment.end,
children: [ children: [
pw.Text('REMISES:', style: pw.TextStyle(color: PdfColors.orange, fontSize: 10, font: regularFont)), pw.Text('REMISES:',
style: pw.TextStyle(
color: PdfColors.orange,
fontSize: 10)),
pw.SizedBox(width: 10), pw.SizedBox(width: 10),
pw.Text('-${totalRemises.toStringAsFixed(0)}', style: pw.TextStyle(color: PdfColors.orange, fontSize: 10, font: regularFont)), pw.Text(
'-${totalRemises.toStringAsFixed(0)}',
style: pw.TextStyle(
color: PdfColors.orange,
fontSize: 10)),
], ],
), ),
pw.SizedBox(height: 2), pw.SizedBox(height: 2),
], ],
if (totalCadeaux > 0) ...[ if (totalCadeaux > 0) ...[
pw.Row( pw.Row(
mainAxisAlignment: pw.MainAxisAlignment.end, mainAxisAlignment: pw.MainAxisAlignment.end,
children: [ children: [
pw.Text('CADEAUX ($nombreCadeaux):', style: pw.TextStyle(color: PdfColors.green700, fontSize: 10, font: regularFont)), pw.Text('CADEAUX ($nombreCadeaux):',
style: pw.TextStyle(
color: PdfColors.green700,
fontSize: 10)),
pw.SizedBox(width: 10), pw.SizedBox(width: 10),
pw.Text('-${totalCadeaux.toStringAsFixed(0)}', style: pw.TextStyle(color: PdfColors.green700, fontSize: 10, font: regularFont)), pw.Text(
'-${totalCadeaux.toStringAsFixed(0)}',
style: pw.TextStyle(
color: PdfColors.green700,
fontSize: 10)),
], ],
), ),
pw.SizedBox(height: 2), pw.SizedBox(height: 2),
], ],
pw.Container(
pw.Container(width: 120, height: 1.5, color: PdfColors.black, margin: const pw.EdgeInsets.symmetric(vertical: 2)), width: 120,
height: 1.5,
color: PdfColors.black,
margin: const pw.EdgeInsets.symmetric(
vertical: 2)),
pw.Row( pw.Row(
mainAxisAlignment: pw.MainAxisAlignment.end, mainAxisAlignment: pw.MainAxisAlignment.end,
children: [ children: [
pw.Text('TOTAL:', style: boldTextStyle), pw.Text('TOTAL:', style: boldTextStyle),
pw.SizedBox(width: 10), pw.SizedBox(width: 10),
pw.Text('${commande.montantTotal.toStringAsFixed(0)} MGA', style: boldTextStyle), pw.Text(
'${commande.montantTotal.toStringAsFixed(0)} MGA',
style: boldTextStyle),
], ],
), ),
if (totalCadeaux > 0) ...[
pw.SizedBox(height: 3),
pw.Container(
padding: const pw.EdgeInsets.all(3),
decoration: pw.BoxDecoration(
color: PdfColors.green50,
borderRadius: pw.BorderRadius.circular(3),
),
child: pw.Text(
'🎁 $nombreCadeaux cadeau(s) offert(s) (${totalCadeaux.toStringAsFixed(0)} MGA)',
style: pw.TextStyle(
fontSize: 9, color: PdfColors.green700),
),
),
],
], ],
), ),
), ),
pw.SizedBox(width: 15), pw.SizedBox(width: 15),
// Section vendeurs et signatures // Informations vendeurs et signatures
pw.Expanded( pw.Expanded(
flex: 3, flex: 3,
child: pw.Column( child: pw.Column(
@ -819,32 +823,48 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
borderRadius: pw.BorderRadius.circular(3), borderRadius: pw.BorderRadius.circular(3),
), ),
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment:
pw.CrossAxisAlignment.start,
children: [ children: [
pw.Text('VENDEURS', style: pw.TextStyle(fontSize: 10, fontWeight: pw.FontWeight.bold, font: regularFont)), pw.Text('VENDEURS',
style: pw.TextStyle(
fontSize: 10,
fontWeight: pw.FontWeight.bold)),
pw.SizedBox(height: 3), pw.SizedBox(height: 3),
pw.Row( pw.Row(
children: [ children: [
pw.Expanded( pw.Expanded(
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment:
pw.CrossAxisAlignment.start,
children: [ children: [
pw.Text('Initiateur:', style: tinyTextStyle), pw.Text('Initiateur:',
style: tinyTextStyle),
pw.Text( pw.Text(
commandeur != null ? '${commandeur.name} ${commandeur.lastName ?? ''}'.trim() : 'N/A', commandeur != null
style: pw.TextStyle(fontSize: 9, font: regularFont), ? '${commandeur.name} ${commandeur.lastName ?? ''}'
.trim()
: 'N/A',
style:
pw.TextStyle(fontSize: 9),
), ),
], ],
), ),
), ),
pw.Expanded( pw.Expanded(
child: pw.Column( child: pw.Column(
crossAxisAlignment: pw.CrossAxisAlignment.start, crossAxisAlignment:
pw.CrossAxisAlignment.start,
children: [ children: [
pw.Text('Validateur:', style: tinyTextStyle), pw.Text('Validateur:',
style: tinyTextStyle),
pw.Text( pw.Text(
validateur != null ? '${validateur.name} ${validateur.lastName ?? ''}'.trim() : 'N/A', validateur != null
style: pw.TextStyle(fontSize: 9, font: regularFont), ? '${validateur.name} ${validateur.lastName ?? ''}'
.trim()
: 'N/A',
style:
pw.TextStyle(fontSize: 9),
), ),
], ],
), ),
@ -859,20 +879,33 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
// Signatures // Signatures
pw.Row( pw.Row(
mainAxisAlignment: pw.MainAxisAlignment.spaceBetween, mainAxisAlignment:
pw.MainAxisAlignment.spaceBetween,
children: [ children: [
pw.Column( pw.Column(
children: [ children: [
pw.Text('Vendeur', style: pw.TextStyle(fontSize: 9, fontWeight: pw.FontWeight.bold, font: regularFont)), pw.Text('Vendeur',
style: pw.TextStyle(
fontSize: 9,
fontWeight: pw.FontWeight.bold)),
pw.SizedBox(height: 15), pw.SizedBox(height: 15),
pw.Container(width: 70, height: 1, color: PdfColors.black), pw.Container(
width: 70,
height: 1,
color: PdfColors.black),
], ],
), ),
pw.Column( pw.Column(
children: [ children: [
pw.Text('Client', style: pw.TextStyle(fontSize: 9, fontWeight: pw.FontWeight.bold, font: regularFont)), pw.Text('Client',
style: pw.TextStyle(
fontSize: 9,
fontWeight: pw.FontWeight.bold)),
pw.SizedBox(height: 15), pw.SizedBox(height: 15),
pw.Container(width: 70, height: 1, color: PdfColors.black), pw.Container(
width: 70,
height: 1,
color: PdfColors.black),
], ],
), ),
], ],
@ -883,7 +916,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
], ],
), ),
pw.SizedBox(height: 6), pw.SizedBox(height: 4),
// Note finale // Note finale
pw.Text( pw.Text(
@ -893,70 +926,61 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
], ],
), ),
), ),
),
], ],
), ),
); );
} }
// PAGE EN MODE PAYSAGE // PAGE EN MODE PAYSAGE : Les deux exemplaires sur une seule page
pdf.addPage( pdf.addPage(
pw.Page( pw.Page(
pageFormat: PdfPageFormat.a4.landscape, pageFormat: PdfPageFormat.a4.landscape, // Mode paysage
margin: const pw.EdgeInsets.all(12), margin: const pw.EdgeInsets.all(12),
build: (pw.Context context) { build: (pw.Context context) {
return pw.Row( return pw.Row(
// Utilisation de Row au lieu de Column pour placer côte à côte
children: [ children: [
pw.Expanded(child: buildExemplaire("CLIENT")), // Premier exemplaire (CLIENT)
pw.Expanded(
child: buildExemplaire("CLIENT"),
),
pw.SizedBox(width: 15), pw.SizedBox(width: 15),
// AMÉLIORATION: Remplacer les caractères Unicode par du texte simple
// Trait de séparation vertical
pw.Container( pw.Container(
width: 2, width: 2,
height: double.infinity, height: double.infinity,
child: pw.Column( child: pw.Column(
mainAxisAlignment: pw.MainAxisAlignment.center, mainAxisAlignment: pw.MainAxisAlignment.center,
children: [ children: [
pw.Container( pw.Text('✂️', style: pw.TextStyle(fontSize: 14)),
width: 20,
height: 20,
decoration: pw.BoxDecoration(
shape: pw.BoxShape.circle,
border: pw.Border.all(color: PdfColors.black, width: 2),
),
child: pw.Center(
child: pw.Text('X', style: pw.TextStyle(fontSize: 12, fontWeight: pw.FontWeight.bold, font: regularFont)),
),
),
pw.SizedBox(height: 10), pw.SizedBox(height: 10),
pw.Transform.rotate( pw.Transform.rotate(
angle: 1.5708, angle: 1.5708, // 90 degrés en radians (π/2)
child: pw.Text('DÉCOUPER ICI', style: pw.TextStyle(fontSize: 10, fontWeight: pw.FontWeight.bold, font: regularFont)), child: pw.Text('DÉCOUPER ICI',
style: pw.TextStyle(
fontSize: 10, fontWeight: pw.FontWeight.bold)),
), ),
pw.SizedBox(height: 10), pw.SizedBox(height: 10),
pw.Container( pw.Text('✂️', style: pw.TextStyle(fontSize: 14)),
width: 20,
height: 20,
decoration: pw.BoxDecoration(
shape: pw.BoxShape.circle,
border: pw.Border.all(color: PdfColors.black, width: 2),
),
child: pw.Center(
child: pw.Text('X', style: pw.TextStyle(fontSize: 12, fontWeight: pw.FontWeight.bold, font: regularFont)),
),
),
], ],
), ),
), ),
pw.SizedBox(width: 15), pw.SizedBox(width: 15),
pw.Expanded(child: buildExemplaire("MAGASIN")),
// Deuxième exemplaire (MAGASIN)
pw.Expanded(
child: buildExemplaire("MAGASIN"),
),
], ],
); );
}, },
), ),
); );
print('=== RÉSULTAT FINAL ===');
print('PDF généré avec ${detailsAvecProduits.length} produits');
// Sauvegarder le PDF // Sauvegarder le PDF
final output = await getTemporaryDirectory(); final output = await getTemporaryDirectory();
final file = File("${output.path}/bon_livraison_${commande.id}.pdf"); final file = File("${output.path}/bon_livraison_${commande.id}.pdf");
@ -2260,6 +2284,14 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> {
textAlign: pw.TextAlign.center, textAlign: pw.TextAlign.center,
), ),
]), ]),
pw.Text(
'$nombreCadeaux article(s) offert(s)',
style: pw.TextStyle(
fontSize: 6,
color: PdfColors.green600,
),
textAlign: pw.TextAlign.center,
),
], ],
), ),
), ),

View File

@ -1,29 +1,25 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
import 'package:youmazgestion/Components/app_bar.dart'; import 'package:youmazgestion/Components/app_bar.dart';
import 'package:youmazgestion/Components/appDrawer.dart'; import 'package:youmazgestion/Components/appDrawer.dart';
import 'package:youmazgestion/Models/client.dart'; import 'package:youmazgestion/Models/client.dart';
import 'package:youmazgestion/Services/stock_managementDatabase.dart'; import 'package:youmazgestion/Services/stock_managementDatabase.dart';
import 'package:youmazgestion/controller/userController.dart';
class HistoriquePage extends StatefulWidget { class HistoriquePage extends StatefulWidget {
const HistoriquePage({super.key}); const HistoriquePage({super.key});
@override @override
_HistoriquePageState createState() => _HistoriquePageState(); _HistoriquePageState createState() => _HistoriquePageState();
} }
class _HistoriquePageState extends State<HistoriquePage> { class _HistoriquePageState extends State<HistoriquePage> {
final AppDatabase _appDatabase = AppDatabase.instance; final AppDatabase _appDatabase = AppDatabase.instance;
// Listes pour les commandes // Listes pour les commandes
final List<Commande> _commandes = []; final List<Commande> _commandes = [];
final List<Commande> _filteredCommandes = []; final List<Commande> _filteredCommandes = [];
List<Map<String, dynamic>> _pointsDeVente = [];
String? _selectedPointDeVente;
final UserController _userController = Get.find<UserController>();
bool _isLoading = true; bool _isLoading = true;
DateTimeRange? _dateRange; DateTimeRange? _dateRange;
@ -42,7 +38,6 @@
void initState() { void initState() {
super.initState(); super.initState();
_loadCommandes(); _loadCommandes();
_loadPointsDeVenteWithDefault();
// Listeners pour les filtres // Listeners pour les filtres
_searchController.addListener(_filterCommandes); _searchController.addListener(_filterCommandes);
@ -50,37 +45,6 @@
_searchCommandeIdController.addListener(_filterCommandes); _searchCommandeIdController.addListener(_filterCommandes);
} }
Future<void> _loadPointsDeVenteWithDefault() async {
try {
print(_userController.userId);
final points = await _appDatabase.getPointsDeVente();
setState(() {
_pointsDeVente = points;
if (points.isNotEmpty) {
if (_userController.pointDeVenteId > 0) {
final userPointDeVente = points.firstWhere(
(point) => point['id'] == _userController.pointDeVenteId,
orElse: () => <String, dynamic>{},
);
if (userPointDeVente.isNotEmpty) {
_selectedPointDeVente = userPointDeVente['nom'] as String;
} else {
_selectedPointDeVente = points[0]['nom'] as String;
}
} else {
_selectedPointDeVente = points[0]['nom'] as String;
}
}
});
} catch (e) {
Get.snackbar('Erreur', 'Impossible de charger les points de vente: $e');
print('❌ Erreur chargement points de vente: $e');
}
}
Future<void> _loadCommandes() async { Future<void> _loadCommandes() async {
setState(() { setState(() {
_isLoading = true; _isLoading = true;
@ -88,7 +52,6 @@ Future<void> _loadPointsDeVenteWithDefault() async {
try { try {
final commandes = await _appDatabase.getCommandes(); final commandes = await _appDatabase.getCommandes();
setState(() { setState(() {
_commandes.clear(); _commandes.clear();
_commandes.addAll(commandes); _commandes.addAll(commandes);
@ -535,7 +498,6 @@ Future<void> _loadPointsDeVenteWithDefault() async {
children: [ children: [
_buildDetailRow('Client', '${client?.nom} ${client?.prenom}', Icons.person), _buildDetailRow('Client', '${client?.nom} ${client?.prenom}', Icons.person),
_buildDetailRow('Date', DateFormat('dd/MM/yyyy à HH:mm').format(commande.dateCommande), Icons.calendar_today), _buildDetailRow('Date', DateFormat('dd/MM/yyyy à HH:mm').format(commande.dateCommande), Icons.calendar_today),
_buildDetailRow('Client', '${_selectedPointDeVente} ', Icons.person),
Row( Row(
children: [ children: [
Icon(Icons.assignment, size: 16, color: Colors.grey.shade600), Icon(Icons.assignment, size: 16, color: Colors.grey.shade600),
@ -767,8 +729,6 @@ Future<void> _loadPointsDeVenteWithDefault() async {
// Widget pour l'item de commande (adapté pour mobile) // Widget pour l'item de commande (adapté pour mobile)
Widget _buildCommandeListItem(Commande commande) { Widget _buildCommandeListItem(Commande commande) {
final isMobile = MediaQuery.of(context).size.width < 600; final isMobile = MediaQuery.of(context).size.width < 600;
// print(commande.commandeurId);
print(_userController.userId);
return Card( return Card(
margin: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), margin: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
@ -816,13 +776,6 @@ Future<void> _loadPointsDeVenteWithDefault() async {
fontSize: 14, fontSize: 14,
), ),
), ),
Text(
'${_selectedPointDeVente}',
style: const TextStyle(
fontWeight: FontWeight.w500,
fontSize: 14,
),
),
Text( Text(
DateFormat('dd/MM/yyyy').format(commande.dateCommande), DateFormat('dd/MM/yyyy').format(commande.dateCommande),
style: TextStyle( style: TextStyle(

View File

@ -177,7 +177,7 @@ void _login() async {
// 6. Navigation immédiate // 6. Navigation immédiate
if (mounted) { if (mounted) {
if (userCredentials['role'] == 'commercial' || userCredentials['role'] == 'caisse') { if (userCredentials['role'] == 'commercial') {
Navigator.pushReplacement( Navigator.pushReplacement(
context, context,
MaterialPageRoute(builder: (context) => const MainLayout()), MaterialPageRoute(builder: (context) => const MainLayout()),

File diff suppressed because it is too large Load Diff

View File

@ -37,10 +37,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: async name: async
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63 sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.12.0" version: "2.13.0"
barcode: barcode:
dependency: transitive dependency: transitive
description: description:
@ -181,10 +181,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: fake_async name: fake_async
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc" sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.2" version: "1.3.3"
ffi: ffi:
dependency: transitive dependency: transitive
description: description:
@ -516,10 +516,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker name: leak_tracker
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.0.8" version: "10.0.9"
leak_tracker_flutter_testing: leak_tracker_flutter_testing:
dependency: transitive dependency: transitive
description: description:
@ -1193,10 +1193,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vm_service name: vm_service
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14" sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "14.3.1" version: "15.0.0"
web: web:
dependency: transitive dependency: transitive
description: description: