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
1d8ac6d4
Unverified
Commit
1d8ac6d4
authored
Jan 02, 2018
by
Leaf Petersen
Committed by
GitHub
Jan 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remaining code changes for Dart 2.0 SDK roll. (#13741)
* Remaining code changes for Dart 2.0 SDK roll
parent
ece737d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
test.dart
dev/bots/test.dart
+4
-4
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+3
-2
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+14
-1
No files found.
dev/bots/test.dart
View file @
1d8ac6d4
...
...
@@ -498,10 +498,10 @@ Future<Null> _verifyGeneratedPluginRegistrants(String flutterRoot) async {
final
Set
<
String
>
outOfDate
=
new
Set
<
String
>();
for
(
String
package
in
packageToRegistrants
.
keys
)
{
final
Map
<
File
,
String
>
fileToContent
=
new
Map
<
File
,
String
>.
fromIterable
(
packageToRegistrants
[
package
],
key:
(
File
f
)
=>
f
,
value:
(
File
f
)
=>
f
.
readAsStringSync
(),
);
final
Map
<
File
,
String
>
fileToContent
=
<
File
,
String
>{};
for
(
File
f
in
packageToRegistrants
[
package
])
{
fileToContent
[
f
]
=
f
.
readAsStringSync
();
}
await
_runCommand
(
flutter
,
<
String
>[
'inject-plugins'
],
workingDirectory:
package
,
printOutput:
false
,
...
...
packages/flutter/lib/src/widgets/navigator.dart
View file @
1d8ac6d4
...
...
@@ -552,7 +552,8 @@ class Navigator extends StatefulWidget {
///
/// Returns a [Future] that completes to the `result` value passed to [pop]
/// when the pushed route is popped off the navigator.
static
Future
<
dynamic
>
push
(
BuildContext
context
,
Route
<
dynamic
>
route
)
{
@optionalTypeArgs
static
Future
<
T
>
push
<
T
>(
BuildContext
context
,
Route
<
T
>
route
)
{
return
Navigator
.
of
(
context
).
push
(
route
);
}
...
...
@@ -913,7 +914,7 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin {
///
/// Returns a [Future] that completes to the `result` value passed to [pop]
/// when the pushed route is popped off the navigator.
Future
<
dynamic
>
push
(
Route
<
dynamic
>
route
)
{
Future
<
Object
>
push
(
Route
<
Object
>
route
)
{
assert
(!
_debugLocked
);
assert
(()
{
_debugLocked
=
true
;
return
true
;
}());
assert
(
route
!=
null
);
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
1d8ac6d4
...
...
@@ -592,7 +592,20 @@ class _HasGoodToStringDeep extends Matcher {
/// sets of value for which a metric space is defined.
typedef
num
DistanceFunction
<
T
>(
T
a
,
T
b
);
const
Map
<
Type
,
DistanceFunction
<
dynamic
>>
_kStandardDistanceFunctions
=
const
<
Type
,
DistanceFunction
<
dynamic
>>{
/// The type of a union of instances of [DistanceFunction<T>] for various types
/// T.
///
/// This type is used to describe a collection of [DistanceFunction<T>]
/// functions which have (potentially) unrelated argument types. Since the
/// argument types of the functions may be unrelated, the only thing that the
/// type system can statically assume about them is that they accept null (since
/// all types in Dart are nullable).
///
/// Calling an instance of this type must either be done dynamically, or by
/// first casting it to a [DistanceFunction<T>] for some concrete T.
typedef
num
AnyDistanceFunction
(
Null
a
,
Null
b
);
const
Map
<
Type
,
AnyDistanceFunction
>
_kStandardDistanceFunctions
=
const
<
Type
,
AnyDistanceFunction
>{
Color:
_maxComponentColorDistance
,
Offset:
_offsetDistance
,
int
:
_intDistance
,
...
...
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