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:
@@ -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),
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user