Renamed test class to avoid conflict with the navigator page api. (#53279)
This commit is contained in:
@@ -7,7 +7,7 @@ import 'package:flutter_driver/driver_extension.dart';
|
||||
import 'motion_events_page.dart';
|
||||
import 'page.dart';
|
||||
|
||||
final List<Page> _allPages = <Page>[
|
||||
final List<PageWidget> _allPages = <PageWidget>[
|
||||
const MotionEventsPage(),
|
||||
];
|
||||
|
||||
@@ -31,7 +31,7 @@ class Home extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
void _pushPage(BuildContext context, Page page) {
|
||||
void _pushPage(BuildContext context, PageWidget page) {
|
||||
Navigator.of(context).push(MaterialPageRoute<void>(
|
||||
builder: (_) => Scaffold(
|
||||
body: page,
|
||||
|
||||
@@ -18,7 +18,7 @@ MethodChannel channel = const MethodChannel('android_views_integration');
|
||||
|
||||
const String kEventsFileName = 'touchEvents';
|
||||
|
||||
class MotionEventsPage extends Page {
|
||||
class MotionEventsPage extends PageWidget {
|
||||
const MotionEventsPage()
|
||||
: super('Motion Event Tests', const ValueKey<String>('MotionEventsListTile'));
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import 'package:flutter/material.dart';
|
||||
/// The base class of all the testing pages
|
||||
//
|
||||
/// A testing page has to override this in order to be put as one of the items in the main page.
|
||||
abstract class Page extends StatelessWidget {
|
||||
const Page(this.title, this.tileKey);
|
||||
abstract class PageWidget extends StatelessWidget {
|
||||
const PageWidget(this.title, this.tileKey);
|
||||
|
||||
/// The title of the testing page
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user