mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[Benchmark: platform_views_layout] show and hide more PlatformViews (#110688)
This commit is contained in:
parent
0c82d9676f
commit
1560d0cef7
@ -33,16 +33,18 @@ void main() {
|
|||||||
final SerializableFinder list = find.byValueKey(listKey);
|
final SerializableFinder list = find.byValueKey(listKey);
|
||||||
expect(list, isNotNull);
|
expect(list, isNotNull);
|
||||||
|
|
||||||
// Scroll down
|
for (int j = 0; j < 5; j ++) {
|
||||||
for (int i = 0; i < 5; i += 1) {
|
// Scroll down
|
||||||
await driver.scroll(list, 0.0, -300.0, const Duration(milliseconds: 300));
|
for (int i = 0; i < 5; i += 1) {
|
||||||
await Future<void>.delayed(const Duration(milliseconds: 500));
|
await driver.scroll(list, 0.0, -300.0, const Duration(milliseconds: 300));
|
||||||
}
|
await Future<void>.delayed(const Duration(milliseconds: 500));
|
||||||
|
}
|
||||||
|
|
||||||
// Scroll up
|
// Scroll up
|
||||||
for (int i = 0; i < 5; i += 1) {
|
for (int i = 0; i < 5; i += 1) {
|
||||||
await driver.scroll(list, 0.0, 300.0, const Duration(milliseconds: 300));
|
await driver.scroll(list, 0.0, 300.0, const Duration(milliseconds: 300));
|
||||||
await Future<void>.delayed(const Duration(milliseconds: 500));
|
await Future<void>.delayed(const Duration(milliseconds: 500));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user