Explorar el Código

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

OscarGil03 hace 6 meses
padre
commit
7318f130d9
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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),
                             ),