|
@@ -92,7 +92,7 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
|
|
|
|
// Función para cargar topings disponibles
|
|
// Función para cargar topings disponibles
|
|
void _cargarTopingsDisponibles() async {
|
|
void _cargarTopingsDisponibles() async {
|
|
- _topingsDisponibles = await _topingViewModel.fetchRegistros();
|
|
|
|
|
|
+ _topingsDisponibles = await _topingViewModel.fetchRegistros(limitee: -1);
|
|
|
|
|
|
var categorias = await _categoriaTopingViewModel.fetchRegistros();
|
|
var categorias = await _categoriaTopingViewModel.fetchRegistros();
|
|
var categoriaBase = categorias.firstWhereOrNull(
|
|
var categoriaBase = categorias.firstWhereOrNull(
|
|
@@ -185,7 +185,7 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
.setBusqueda(_busqueda.text);
|
|
.setBusqueda(_busqueda.text);
|
|
var productosResultantes =
|
|
var productosResultantes =
|
|
await Provider.of<ProductoViewModel>(context, listen: false)
|
|
await Provider.of<ProductoViewModel>(context, listen: false)
|
|
- .fetchRegistros();
|
|
|
|
|
|
+ .fetchRegistros(limitee: -1);
|
|
await Provider.of<ProductoViewModel>(context, listen: false)
|
|
await Provider.of<ProductoViewModel>(context, listen: false)
|
|
.setBusqueda("");
|
|
.setBusqueda("");
|
|
await Provider.of<ProductoViewModel>(context, listen: false)
|
|
await Provider.of<ProductoViewModel>(context, listen: false)
|
|
@@ -760,7 +760,7 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
children: [
|
|
Image.network(
|
|
Image.network(
|
|
- topping.mediaToping[0].media!.ruta!,
|
|
|
|
|
|
+ topping.imagenes[0].media!.ruta!,
|
|
width: 80,
|
|
width: 80,
|
|
loadingBuilder: (BuildContext context,
|
|
loadingBuilder: (BuildContext context,
|
|
Widget child,
|
|
Widget child,
|