fix(paises): correct the gap between the language and country lists

Issue 3 (feedback-pruebas): t4:260 draws a 14px gap between "Tus
idiomas" and "Todos", not 16.
This commit is contained in:
2026-07-30 22:13:43 +02:00
parent 93b7ec2af9
commit 9a75027d57
2 changed files with 27 additions and 1 deletions
+6 -1
View File
@@ -134,7 +134,12 @@ class _PantallaPaisesState extends State<PantallaPaises> {
), ),
if (query.isEmpty) ...[ if (query.isEmpty) ...[
_seccionTusIdiomas(context, estado.paises, l10n), _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), _seccionTodos(context, estado.paises, l10n),
] else ] else
_seccionTodos(context, paisesFiltrados, l10n), _seccionTodos(context, paisesFiltrados, l10n),
+21
View File
@@ -262,6 +262,27 @@ void main() {
expect(find.byIcon(Icons.search_rounded), findsOneWidget); 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( testWidgets(