Procházet zdrojové kódy

Lista de toppings descolapsada por default y muestra el maximo por categoria

OscarGil03 před 6 měsíci
rodič
revize
7318f130d9
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      lib/views/pedido/pedido_form.dart

+ 2 - 1
lib/views/pedido/pedido_form.dart

@@ -1107,6 +1107,7 @@ class _PedidoFormState extends State<PedidoForm> {
                     // ExpansionTile para todos los toppings
                     if (item.selectableToppings.isNotEmpty)
                       ExpansionTile(
+                        initiallyExpanded: true,
                         title: const Text(
                           'Toppings',
                           style: TextStyle(
@@ -1121,7 +1122,7 @@ class _PedidoFormState extends State<PedidoForm> {
                           return ExpansionTile(
                             initiallyExpanded: true,
                             title: Text(
-                              categoria.nombre!,
+                              '${categoria.nombre} (Hasta ${categoria.maximo ?? 0})',
                               style: const TextStyle(
                                   fontWeight: FontWeight.bold, fontSize: 16),
                             ),