flutter/dev/integration_tests/android_views/lib/page.dart
Chris Yang 6ef4e822f7
Refactoring the Android_views tests app to prepare for adding the iOS platform view tests (#36200)
This PR created a main page for platform view tests in the android views testing app. The main page none contains a list of the links to the pages being tested. It puts the android view motion events tests to a sub page.
The PR also added iOS related files to get ready for adding the iOS platform views tests.
2019-07-17 08:21:09 -07:00

23 lines
763 B
Dart

// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
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);
/// The title of the testing page
///
/// It will be shown on the main page as the text on the link which opens the page.
final String title;
/// The key of the ListTile that navigates to the page.
///
/// Used by the integration test to navigate to the corresponding page.
final ValueKey<String> tileKey;
}