We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c0ee96 commit 72e1bf1Copy full SHA for 72e1bf1
packages/flutter/test/material/choice_chip_test.dart
@@ -848,4 +848,18 @@ void main() {
848
SystemMouseCursors.forbidden,
849
);
850
});
851
+
852
+ testWidgets('ChoiceChip renders at zero area', (WidgetTester tester) async {
853
+ await tester.pumpWidget(
854
+ const MaterialApp(
855
+ home: Center(
856
+ child: SizedBox.shrink(
857
+ child: Scaffold(body: ChoiceChip(label: Text('X'), selected: true)),
858
+ ),
859
860
861
+ );
862
+ final Finder xText = find.text('X');
863
+ expect(tester.getSize(xText).isEmpty, isTrue);
864
+ });
865
}
0 commit comments