From c8ec3058fa159aab10c8735474f92e8d497a6ffd Mon Sep 17 00:00:00 2001 From: Ahmed Mohamed Sameh Date: Tue, 5 Aug 2025 09:52:55 +0300 Subject: [PATCH] Make sure that an AboutListTile doesn't crash in 0x0 environment (#172421) This is my attempt to handle #6537 for the AboutListTile UI control. --- packages/flutter/test/material/about_test.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/flutter/test/material/about_test.dart b/packages/flutter/test/material/about_test.dart index e4a7276d009..2d680d4f1de 100644 --- a/packages/flutter/test/material/about_test.dart +++ b/packages/flutter/test/material/about_test.dart @@ -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(