fix(app): a stage's tabs always end at the bottom of the screen, also on wide screens
This commit is contained in:
@@ -196,4 +196,24 @@ void main() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
for (final platform in RunDetailTestPlatform.values) {
|
||||
for (final size in const [
|
||||
Size(390, 844),
|
||||
Size(884, 832),
|
||||
Size(1000, 700),
|
||||
]) {
|
||||
testWidgets(
|
||||
'${platform.name} stage tabs end at the bottom at ${size.width}x${size.height}',
|
||||
(tester) async {
|
||||
await openVisit(tester, platform, size: size);
|
||||
for (final section in shownVisitSections) {
|
||||
await openVisitTab(tester, section);
|
||||
final strip = tester.getRect(find.byType(RunVisitSectionStrip));
|
||||
expect(strip.bottom, size.height, reason: section.name);
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user