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 bcc0c47 commit 4ba3886Copy full SHA for 4ba3886
packages/flutter/test/material/bottom_app_bar_test.dart
@@ -733,6 +733,18 @@ void main() {
733
expect(iconButton.center.dy, barCenter);
734
expect(fab.center.dy, barCenter);
735
});
736
+
737
+ testWidgets('BottomAppBar renders at zero size', (WidgetTester tester) async {
738
+ await tester.pumpWidget(
739
+ const MaterialApp(
740
+ home: Scaffold(
741
+ bottomNavigationBar: SizedBox.shrink(child: BottomAppBar(child: Text('X'))),
742
+ ),
743
744
+ );
745
+ final Finder bottomAppBarChild = find.text('X');
746
+ expect(tester.getSize(bottomAppBarChild).isEmpty, isTrue);
747
+ });
748
}
749
750
// The bottom app bar clip path computation is only available at paint time.
0 commit comments