diff --git a/packages/flutter/test/material/circle_avatar_test.dart b/packages/flutter/test/material/circle_avatar_test.dart index 900219445db..5fc2715686e 100644 --- a/packages/flutter/test/material/circle_avatar_test.dart +++ b/packages/flutter/test/material/circle_avatar_test.dart @@ -316,6 +316,14 @@ void main() { expect(paragraph.text.style!.color, equals(theme.primaryTextTheme.titleLarge!.color)); }); }); + + testWidgets('CircleAvatar renders at zero area', (WidgetTester tester) async { + await tester.pumpWidget( + const MaterialApp( + home: SizedBox.shrink(child: CircleAvatar(child: Text('X'))), + ), + ); + }); } Widget wrap({required Widget child}) {