File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/flutter/test/material Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1888,6 +1888,20 @@ void main() {
1888
1888
final ThemeData licensePageTheme = Theme .of (tester.element (find.text ('Powered by Flutter' )));
1889
1889
expect (theme.colorScheme.primary, licensePageTheme.colorScheme.primary);
1890
1890
});
1891
+
1892
+ testWidgets ('AboutDialog renders at zero area' , (WidgetTester tester) async {
1893
+ await tester.pumpWidget (
1894
+ const MaterialApp (
1895
+ home: Center (
1896
+ child: SizedBox .shrink (
1897
+ child: Scaffold (body: AboutDialog (children: < Widget > [Text ('X' )])),
1898
+ ),
1899
+ ),
1900
+ ),
1901
+ );
1902
+ final Finder xText = find.text ('X' );
1903
+ expect (tester.getSize (xText).isEmpty, isTrue);
1904
+ });
1891
1905
}
1892
1906
1893
1907
class FakeLicenseEntry extends LicenseEntry {
You can’t perform that action at this time.
0 commit comments