diff --git a/lib/pantallas/pantalla_paises.dart b/lib/pantallas/pantalla_paises.dart index ac4444c..4891aa0 100644 --- a/lib/pantallas/pantalla_paises.dart +++ b/lib/pantallas/pantalla_paises.dart @@ -134,7 +134,12 @@ class _PantallaPaisesState extends State { ), if (query.isEmpty) ...[ _seccionTusIdiomas(context, estado.paises, l10n), - const SizedBox(height: 16), + // Issue 3 (feedback-pruebas): t4:260 draws a 14px gap + // between "Tus idiomas" and "Todos", not 16. + const SizedBox( + height: 14, + key: ValueKey('paises-seccion-gap'), + ), _seccionTodos(context, estado.paises, l10n), ] else _seccionTodos(context, paisesFiltrados, l10n), diff --git a/test/pantallas/pantalla_paises_test.dart b/test/pantallas/pantalla_paises_test.dart index 1d15d9d..06f7683 100644 --- a/test/pantallas/pantalla_paises_test.dart +++ b/test/pantallas/pantalla_paises_test.dart @@ -262,6 +262,27 @@ void main() { expect(find.byIcon(Icons.search_rounded), findsOneWidget); }); + + testWidgets('Issue 3 (feedback-pruebas): the gap between "Tus idiomas" and ' + '"Todos" is 14, matching t4:260 -- not 16', (tester) async { + final estado = EstadoBusqueda( + radio: FakeServicioRadio( + paises: const [ + PaisRadio(nombre: 'Spain', codigoIso: 'ES', numeroEmisoras: 482), + ], + ), + ); + addTearDown(estado.dispose); + + await tester.pumpWidget(buildScreen(estado)); + await pumpEstable(tester); + + expect( + tester.getSize(find.byKey(const ValueKey('paises-seccion-gap'))).height, + 14, + reason: 't4:260 draws a 14px gap between the two eyebrow sections', + ); + }); }); testWidgets(