Updated custom ListTile examples (#128071)

This commit is contained in:
Hans Muller
2023-06-01 16:21:42 -07:00
committed by GitHub
parent 35174cc2b7
commit 14136ae319
3 changed files with 33 additions and 56 deletions

View File

@@ -20,7 +20,7 @@ void main() {
expect(thumbnailAspectRatio.aspectRatio, 1.0);
// The Expanded widget is used to control the size of the text.
Expanded textExpanded = tester.widget(find.ancestor(
final Expanded textExpanded = tester.widget(find.ancestor(
of: find.text('Flutter 1.0 Launch'),
matching: find.byType(Expanded).at(0),
));
@@ -32,12 +32,5 @@ void main() {
matching: find.byType(AspectRatio),
));
expect(thumbnailAspectRatio.aspectRatio, 1.0);
// The Expanded widget is used to control the size of the text.
textExpanded = tester.widget(find.ancestor(
of: find.text('Flutter 1.2 Release - Continual updates to the framework'),
matching: find.byType(Expanded).at(3),
));
expect(textExpanded.flex, 1);
});
}