Add support for material agnostic driver navigation (#22461)
This commit is contained in:
@@ -13,7 +13,7 @@ class CupertinoProgressIndicatorDemo extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
previousPageTitle: 'Cupertino',
|
||||
previousPageTitle: 'Back',
|
||||
middle: const Text('Cupertino Activity Indicator'),
|
||||
trailing: CupertinoDemoDocumentationButton(routeName),
|
||||
),
|
||||
|
||||
@@ -45,9 +45,7 @@ const List<String> kUnsynchronizedDemos = <String>[
|
||||
'Video@Media',
|
||||
];
|
||||
|
||||
const List<String> kSkippedDemos = <String>[
|
||||
'Pull to refresh@Cupertino', // The back button lacks a tooltip.
|
||||
];
|
||||
const List<String> kSkippedDemos = <String>[];
|
||||
|
||||
// All of the gallery demos, identified as "title@category".
|
||||
//
|
||||
@@ -157,10 +155,10 @@ Future<Null> runDemos(List<String> demos, FlutterDriver driver) async {
|
||||
|
||||
if (kUnsynchronizedDemos.contains(demo)) {
|
||||
await driver.runUnsynchronized<void>(() async {
|
||||
await driver.tap(find.byTooltip('Back'));
|
||||
await driver.tap(find.pageBack());
|
||||
});
|
||||
} else {
|
||||
await driver.tap(find.byTooltip('Back'));
|
||||
await driver.tap(find.pageBack());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user