Make sure that an AboutListTile doesn't crash in 0x0 environment (#172421)

This is my attempt to handle #6537 for the AboutListTile UI control.
This commit is contained in:
Ahmed Mohamed Sameh 2025-08-05 09:52:55 +03:00 committed by GitHub
parent 1cc5d09f65
commit c8ec3058fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1903,6 +1903,20 @@ void main() {
expect(tester.getSize(xText).isEmpty, isTrue);
});
testWidgets('AboutListTile renders at zero area', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(
home: Center(
child: SizedBox.shrink(
child: Scaffold(body: AboutListTile(child: Text('X'))),
),
),
),
);
final Finder xText = find.text('X');
expect(tester.getSize(xText).isEmpty, isTrue);
});
testWidgets('LicensePage renders at zero area', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(