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
e30f9a94
Unverified
Commit
e30f9a94
authored
Oct 30, 2018
by
Devon Carew
Committed by
GitHub
Oct 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add explicit const keywords (#23652)
parent
ec5719a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
named_isolates_test.dart
dev/devicelab/bin/tasks/named_isolates_test.dart
+1
-1
cupertino_picker_demo.dart
...ter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart
+2
-2
gesture_detector_test.dart
packages/flutter/test/widgets/gesture_detector_test.dart
+1
-1
devfs_test.dart
packages/flutter_tools/test/devfs_test.dart
+1
-1
No files found.
dev/devicelab/bin/tasks/named_isolates_test.dart
View file @
e30f9a94
...
...
@@ -32,7 +32,7 @@ void main() {
section
(
'Verify all the debug isolate names are set'
);
runProcess
.
stdin
.
write
(
'l'
);
await
Future
.
wait
<
dynamic
>(<
Future
<
dynamic
>>[
firstNameFound
.
future
,
secondNameFound
.
future
])
.
timeout
(
Duration
(
seconds:
1
),
onTimeout:
()
=>
throw
'Isolate names not found.'
);
.
timeout
(
const
Duration
(
seconds:
1
),
onTimeout:
()
=>
throw
'Isolate names not found.'
);
await
_quitRunner
(
runProcess
);
section
(
'Attach to the second debug isolate'
);
...
...
examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart
View file @
e30f9a94
...
...
@@ -21,7 +21,7 @@ class CupertinoPickerDemo extends StatefulWidget {
class
_CupertinoPickerDemoState
extends
State
<
CupertinoPickerDemo
>
{
int
_selectedColorIndex
=
0
;
Duration
timer
=
Duration
();
Duration
timer
=
const
Duration
();
// Value that is shown in the date picker in date mode.
DateTime
date
=
DateTime
.
now
();
...
...
@@ -276,4 +276,4 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
),
);
}
}
\ No newline at end of file
}
packages/flutter/test/widgets/gesture_detector_test.dart
View file @
e30f9a94
...
...
@@ -340,7 +340,7 @@ void main() {
await
gesture
.
up
();
}
await
longPress
(
kLongPressTimeout
+
Duration
(
seconds:
1
));
// To make sure the time for long press has occu
red
await
longPress
(
kLongPressTimeout
+
const
Duration
(
seconds:
1
));
// To make sure the time for long press has occur
red
expect
(
longPressUp
,
1
);
});
}
packages/flutter_tools/test/devfs_test.dart
View file @
e30f9a94
...
...
@@ -71,7 +71,7 @@ void main() {
file
.
parent
.
createSync
(
recursive:
true
);
file
.
writeAsBytesSync
(<
int
>[
1
,
2
,
3
]);
final
DateTime
fiveSecondsAgo
=
DateTime
.
now
().
subtract
(
Duration
(
seconds:
5
));
final
DateTime
fiveSecondsAgo
=
DateTime
.
now
().
subtract
(
const
Duration
(
seconds:
5
));
expect
(
content
.
isModifiedAfter
(
fiveSecondsAgo
),
isTrue
);
expect
(
content
.
isModifiedAfter
(
fiveSecondsAgo
),
isTrue
);
expect
(
content
.
isModifiedAfter
(
null
),
isTrue
);
...
...
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