|
|
@ -717,6 +717,36 @@ class OrderCard extends StatelessWidget { |
|
|
order.statut == 'en_preparation') |
|
|
order.statut == 'en_preparation') |
|
|
Row( |
|
|
Row( |
|
|
children: [ |
|
|
children: [ |
|
|
|
|
|
if (order.statut == 'en_attente') |
|
|
|
|
|
Expanded( |
|
|
|
|
|
child: ElevatedButton( |
|
|
|
|
|
onPressed: |
|
|
|
|
|
() => { |
|
|
|
|
|
Navigator.push( |
|
|
|
|
|
context, |
|
|
|
|
|
MaterialPageRoute( |
|
|
|
|
|
builder: |
|
|
|
|
|
(context) => AddItemsToOrderPage( |
|
|
|
|
|
commandId: order.id, |
|
|
|
|
|
numeroCommande: order.numeroCommande, |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
}, |
|
|
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
|
|
backgroundColor: Colors.orange, |
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 12), |
|
|
|
|
|
shape: RoundedRectangleBorder( |
|
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
child: const Text( |
|
|
|
|
|
'Préparer', |
|
|
|
|
|
style: TextStyle(color: Colors.white, fontSize: 12), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
const SizedBox(width: 8), |
|
|
Expanded( |
|
|
Expanded( |
|
|
flex: 3, |
|
|
flex: 3, |
|
|
child: ElevatedButton.icon( |
|
|
child: ElevatedButton.icon( |
|
|
|