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
bfedbd09
Unverified
Commit
bfedbd09
authored
Oct 10, 2018
by
Alexandre Ardhuin
Committed by
GitHub
Oct 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefer_void_to_null in flutter_localizations (#22826)
parent
422e56c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
date_picker_test.dart
packages/flutter_localizations/test/date_picker_test.dart
+1
-1
time_picker_test.dart
packages/flutter_localizations/test/time_picker_test.dart
+2
-2
widgets_test.dart
packages/flutter_localizations/test/widgets_test.dart
+1
-1
No files found.
packages/flutter_localizations/test/date_picker_test.dart
View file @
bfedbd09
...
...
@@ -225,7 +225,7 @@ void main() {
});
}
Future
<
Null
>
_pumpBoilerplate
(
Future
<
void
>
_pumpBoilerplate
(
WidgetTester
tester
,
Widget
child
,
{
Locale
locale
=
const
Locale
(
'en'
,
'US'
),
...
...
packages/flutter_localizations/test/time_picker_test.dart
View file @
bfedbd09
...
...
@@ -47,7 +47,7 @@ Future<Offset> startPicker(WidgetTester tester, ValueChanged<TimeOfDay> onChange
return
tester
.
getCenter
(
find
.
byKey
(
const
Key
(
'time-picker-dial'
)));
}
Future
<
Null
>
finishPicker
(
WidgetTester
tester
)
async
{
Future
<
void
>
finishPicker
(
WidgetTester
tester
)
async
{
final
MaterialLocalizations
materialLocalizations
=
MaterialLocalizations
.
of
(
tester
.
element
(
find
.
byType
(
RaisedButton
)));
await
tester
.
tap
(
find
.
text
(
materialLocalizations
.
okButtonLabel
));
await
tester
.
pumpAndSettle
(
const
Duration
(
seconds:
1
));
...
...
@@ -130,7 +130,7 @@ void main() {
const
List
<
String
>
labels12To11TwoDigit
=
<
String
>[
'12'
,
'01'
,
'02'
,
'03'
,
'04'
,
'05'
,
'06'
,
'07'
,
'08'
,
'09'
,
'10'
,
'11'
];
const
List
<
String
>
labels00To23
=
<
String
>[
'00'
,
'13'
,
'14'
,
'15'
,
'16'
,
'17'
,
'18'
,
'19'
,
'20'
,
'21'
,
'22'
,
'23'
];
Future
<
Null
>
mediaQueryBoilerplate
(
WidgetTester
tester
,
bool
alwaysUse24HourFormat
)
async
{
Future
<
void
>
mediaQueryBoilerplate
(
WidgetTester
tester
,
bool
alwaysUse24HourFormat
)
async
{
await
tester
.
pumpWidget
(
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
...
...
packages/flutter_localizations/test/widgets_test.dart
View file @
bfedbd09
...
...
@@ -230,7 +230,7 @@ void main() {
DefaultWidgetsLocalizations
.
delegate
,
];
Future
<
Null
>
pumpTest
(
Locale
locale
)
async
{
Future
<
void
>
pumpTest
(
Locale
locale
)
async
{
await
tester
.
pumpWidget
(
Localizations
(
locale:
locale
,
delegates:
delegates
,
...
...
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