mirror of
https://github.com/flutter/flutter.git
synced 2026-02-14 14:50:22 +08:00
Make sure that an AboutListTile doesn't crash in 0x0 environment (#172421)
This is my attempt to handle #6537 for the AboutListTile UI control.
This commit is contained in:
parent
1cc5d09f65
commit
c8ec3058fa
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user