Browse Source

button add

master
Stephane 4 months ago
parent
commit
2437573f7c
  1. 30
      lib/pages/commandes_screen.dart

30
lib/pages/commandes_screen.dart

@ -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(

Loading…
Cancel
Save