Auto populate nav bar title and previous from page route (#19637)

This commit is contained in:
xster
2018-08-23 18:24:30 -07:00
committed by GitHub
parent ce8ba6e8b3
commit c418b2f328
9 changed files with 781 additions and 235 deletions

View File

@@ -608,7 +608,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
return TestAsyncUtils.guard(() async {
Finder backButton = find.byTooltip('Back');
if (backButton.evaluate().isEmpty) {
backButton = find.widgetWithIcon(CupertinoButton, CupertinoIcons.back);
backButton = find.byType(CupertinoNavigationBarBackButton);
}
expectSync(backButton, findsOneWidget, reason: 'One back button expected on screen');