Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9fdd4d2e
Unverified
Commit
9fdd4d2e
authored
Mar 25, 2020
by
chunhtai
Committed by
GitHub
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed test class to avoid conflict with the navigator page api. (#53279)
parent
ec3653f4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
main.dart
dev/integration_tests/android_views/lib/main.dart
+2
-2
motion_events_page.dart
...tegration_tests/android_views/lib/motion_events_page.dart
+1
-1
page.dart
dev/integration_tests/android_views/lib/page.dart
+2
-2
image_page.dart
..._tests/flutter_driver_screenshot_test/lib/image_page.dart
+1
-1
main.dart
...ration_tests/flutter_driver_screenshot_test/lib/main.dart
+2
-2
page.dart
...ration_tests/flutter_driver_screenshot_test/lib/page.dart
+2
-2
No files found.
dev/integration_tests/android_views/lib/main.dart
View file @
9fdd4d2e
...
...
@@ -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
<
Page
Widget
>
_allPages
=
<
PageWidget
>[
const
MotionEventsPage
(),
];
...
...
@@ -31,7 +31,7 @@ class Home extends StatelessWidget {
);
}
void
_pushPage
(
BuildContext
context
,
Page
page
)
{
void
_pushPage
(
BuildContext
context
,
Page
Widget
page
)
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
<
void
>(
builder:
(
_
)
=>
Scaffold
(
body:
page
,
...
...
dev/integration_tests/android_views/lib/motion_events_page.dart
View file @
9fdd4d2e
...
...
@@ -18,7 +18,7 @@ MethodChannel channel = const MethodChannel('android_views_integration');
const
String
kEventsFileName
=
'touchEvents'
;
class
MotionEventsPage
extends
Page
{
class
MotionEventsPage
extends
Page
Widget
{
const
MotionEventsPage
()
:
super
(
'Motion Event Tests'
,
const
ValueKey
<
String
>(
'MotionEventsListTile'
));
...
...
dev/integration_tests/android_views/lib/page.dart
View file @
9fdd4d2e
...
...
@@ -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
Page
Widget
extends
StatelessWidget
{
const
Page
Widget
(
this
.
title
,
this
.
tileKey
);
/// The title of the testing page
///
...
...
dev/integration_tests/flutter_driver_screenshot_test/lib/image_page.dart
View file @
9fdd4d2e
...
...
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
import
'./page.dart'
;
/// The page that shows an image.
class
ImagePage
extends
Page
{
class
ImagePage
extends
Page
Widget
{
/// Constructs the ImagePage object.
const
ImagePage
()
...
...
dev/integration_tests/flutter_driver_screenshot_test/lib/main.dart
View file @
9fdd4d2e
...
...
@@ -9,7 +9,7 @@ import 'package:device_info/device_info.dart';
import
'./image_page.dart'
;
import
'./page.dart'
;
final
List
<
Page
>
_allPages
=
<
Page
>[
final
List
<
Page
Widget
>
_allPages
=
<
PageWidget
>[
const
ImagePage
(),
];
...
...
@@ -62,7 +62,7 @@ class _MyHomePageState extends State<_MyHomePage> {
);
}
void
_pushPage
(
BuildContext
context
,
Page
page
)
{
void
_pushPage
(
BuildContext
context
,
Page
Widget
page
)
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
<
void
>(
builder:
(
_
)
=>
page
,
));
...
...
dev/integration_tests/flutter_driver_screenshot_test/lib/page.dart
View file @
9fdd4d2e
...
...
@@ -5,10 +5,10 @@
import
'package:flutter/material.dart'
;
/// The base class for all the pages in this test.
abstract
class
Page
extends
StatelessWidget
{
abstract
class
Page
Widget
extends
StatelessWidget
{
/// Constructs a `Page` object.
const
Page
({
@required
this
.
title
,
@required
Key
key
}):
super
(
key:
key
);
const
Page
Widget
({
@required
this
.
title
,
@required
Key
key
}):
super
(
key:
key
);
/// The text that shows on the list item on the main page as well as the navigation bar on the sub page.
final
String
title
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment