From 40f1d77a40bb0370fa3b5be26fd7167cb4dafa4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Bautista=20Fern=C3=A1ndez?= Date: Mon, 27 Apr 2026 17:36:35 +0200 Subject: [PATCH] fix: Correct file resolver call and update preset equalizer in tests --- lib/estado/estado_radio.dart | 2 +- lib/pantallas/pantalla_ajustes.dart | 1 - test/estado/estado_radio_test.dart | 2 +- test/pantallas/pantalla_inicio_test.dart | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/estado/estado_radio.dart b/lib/estado/estado_radio.dart index 6008637..6adef53 100644 --- a/lib/estado/estado_radio.dart +++ b/lib/estado/estado_radio.dart @@ -341,7 +341,7 @@ class EstadoRadio extends ChangeNotifier { Future _archivoCustom() async { if (_resolverArchivoCustom != null) { - return _resolverArchivoCustom!(); + return _resolverArchivoCustom(); } final dir = await getApplicationDocumentsDirectory(); return File('${dir.path}/emisoras_custom.json'); diff --git a/lib/pantallas/pantalla_ajustes.dart b/lib/pantallas/pantalla_ajustes.dart index e8a7399..885d6ce 100644 --- a/lib/pantallas/pantalla_ajustes.dart +++ b/lib/pantallas/pantalla_ajustes.dart @@ -9,7 +9,6 @@ import 'package:path_provider/path_provider.dart'; import 'package:uuid/uuid.dart'; import '../estado/estado_radio.dart'; import '../modelos/emisora.dart'; -import '../modelos/preset_ecualizador.dart'; import '../widgets/ecualizador_widget.dart'; class PantallaAjustes extends StatelessWidget { diff --git a/test/estado/estado_radio_test.dart b/test/estado/estado_radio_test.dart index 60d0bf7..683d9fe 100644 --- a/test/estado/estado_radio_test.dart +++ b/test/estado/estado_radio_test.dart @@ -151,7 +151,7 @@ void main() { final audio = FakeServicioAudio(); final favoritos = FakeServicioFavoritos(); final emisora = emisoraDemo(uuid: 'fav-main', nombre: 'Favorita Main'); - final principal = PresetEcualizador.classical; + final principal = PresetEcualizador.voz; await favoritos.agregar(emisora); final estado = EstadoRadio( diff --git a/test/pantallas/pantalla_inicio_test.dart b/test/pantallas/pantalla_inicio_test.dart index b895da1..564b52a 100644 --- a/test/pantallas/pantalla_inicio_test.dart +++ b/test/pantallas/pantalla_inicio_test.dart @@ -71,7 +71,7 @@ void main() { popularesPorLlamada: [ const [], [emisoraDemo(uuid: 'api-1', nombre: 'API Uno')], - ), + ], tendenciasPorLlamada: [ const [], [emisoraDemo(uuid: 'trend-1', nombre: 'Trend Uno')],