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
3961306b
Commit
3961306b
authored
Mar 09, 2018
by
Alexandre Ardhuin
Committed by
Ian Hickson
Mar 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable lints prefer_const_declarations and prefer_const_literals_to_create_immutables (#14848)
parent
7fab7f6d
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
35 additions
and
35 deletions
+35
-35
analysis_options.yaml
analysis_options.yaml
+2
-2
analysis_options_repo.yaml
analysis_options_repo.yaml
+2
-2
dialog_test.dart
packages/flutter/test/cupertino/dialog_test.dart
+1
-1
app_bar_test.dart
packages/flutter/test/material/app_bar_test.dart
+1
-1
chip_test.dart
packages/flutter/test/material/chip_test.dart
+4
-4
dialog_test.dart
packages/flutter/test/material/dialog_test.dart
+1
-1
dropdown_test.dart
packages/flutter/test/material/dropdown_test.dart
+1
-1
modal_bottom_sheet_test.dart
packages/flutter/test/material/modal_bottom_sheet_test.dart
+1
-1
popup_menu_test.dart
packages/flutter/test/material/popup_menu_test.dart
+1
-1
scaffold_test.dart
packages/flutter/test/material/scaffold_test.dart
+2
-2
snack_bar_test.dart
packages/flutter/test/material/snack_bar_test.dart
+1
-1
tabs_test.dart
packages/flutter/test/material/tabs_test.dart
+2
-2
time_picker_test.dart
packages/flutter/test/material/time_picker_test.dart
+1
-1
nested_scroll_view_test.dart
packages/flutter/test/widgets/nested_scroll_view_test.dart
+1
-1
parent_data_test.dart
packages/flutter/test/widgets/parent_data_test.dart
+2
-2
semantics_test.dart
packages/flutter/test/widgets/semantics_test.dart
+2
-2
slivers_appbar_floating_pinned_test.dart
...ter/test/widgets/slivers_appbar_floating_pinned_test.dart
+1
-1
slivers_block_test.dart
packages/flutter/test/widgets/slivers_block_test.dart
+6
-6
date_time_test.dart
packages/flutter_localizations/test/date_time_test.dart
+2
-2
utils.dart
packages/flutter_tools/lib/src/base/utils.dart
+1
-1
No files found.
analysis_options.yaml
View file @
3961306b
...
@@ -109,8 +109,8 @@ linter:
...
@@ -109,8 +109,8 @@ linter:
-
prefer_conditional_assignment
-
prefer_conditional_assignment
-
prefer_const_constructors
-
prefer_const_constructors
-
prefer_const_constructors_in_immutables
-
prefer_const_constructors_in_immutables
# - prefer_const_declarations # not yet tested
-
prefer_const_declarations
# - prefer_const_literals_to_create_immutables # not yet tested
-
prefer_const_literals_to_create_immutables
# - prefer_constructors_over_static_methods # not yet tested
# - prefer_constructors_over_static_methods # not yet tested
-
prefer_contains
-
prefer_contains
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
...
...
analysis_options_repo.yaml
View file @
3961306b
...
@@ -102,8 +102,8 @@ linter:
...
@@ -102,8 +102,8 @@ linter:
-
prefer_conditional_assignment
-
prefer_conditional_assignment
-
prefer_const_constructors
-
prefer_const_constructors
-
prefer_const_constructors_in_immutables
-
prefer_const_constructors_in_immutables
# - prefer_const_declarations # not yet tested
-
prefer_const_declarations
# - prefer_const_literals_to_create_immutables # not yet tested
-
prefer_const_literals_to_create_immutables
# - prefer_constructors_over_static_methods # not yet tested
# - prefer_constructors_over_static_methods # not yet tested
-
prefer_contains
-
prefer_contains
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
...
...
packages/flutter/test/cupertino/dialog_test.dart
View file @
3961306b
...
@@ -116,7 +116,7 @@ void main() {
...
@@ -116,7 +116,7 @@ void main() {
child:
new
CupertinoAlertDialog
(
child:
new
CupertinoAlertDialog
(
title:
const
Text
(
'The Title'
),
title:
const
Text
(
'The Title'
),
content:
new
Text
(
'Very long content '
*
20
),
content:
new
Text
(
'Very long content '
*
20
),
actions:
<
Widget
>[
actions:
const
<
Widget
>[
const
CupertinoDialogAction
(
const
CupertinoDialogAction
(
child:
const
Text
(
'Cancel'
),
child:
const
Text
(
'Cancel'
),
),
),
...
...
packages/flutter/test/material/app_bar_test.dart
View file @
3961306b
...
@@ -10,7 +10,7 @@ import 'package:flutter_test/flutter_test.dart';
...
@@ -10,7 +10,7 @@ import 'package:flutter_test/flutter_test.dart';
Widget
buildSliverAppBarApp
(
{
bool
floating
,
bool
pinned
,
double
expandedHeight
,
bool
snap:
false
})
{
Widget
buildSliverAppBarApp
(
{
bool
floating
,
bool
pinned
,
double
expandedHeight
,
bool
snap:
false
})
{
return
new
Localizations
(
return
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/material/chip_test.dart
View file @
3961306b
...
@@ -241,7 +241,7 @@ void main() {
...
@@ -241,7 +241,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Localizations
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
@@ -256,7 +256,7 @@ void main() {
...
@@ -256,7 +256,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Localizations
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
@@ -428,7 +428,7 @@ void main() {
...
@@ -428,7 +428,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Localizations
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
@@ -468,7 +468,7 @@ void main() {
...
@@ -468,7 +468,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Localizations
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/material/dialog_test.dart
View file @
3961306b
...
@@ -236,7 +236,7 @@ void main() {
...
@@ -236,7 +236,7 @@ void main() {
await
tester
.
pumpWidget
(
new
Localizations
(
await
tester
.
pumpWidget
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/material/dropdown_test.dart
View file @
3961306b
...
@@ -65,7 +65,7 @@ class _TestAppState extends State<TestApp> {
...
@@ -65,7 +65,7 @@ class _TestAppState extends State<TestApp> {
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
new
Localizations
(
return
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/material/modal_bottom_sheet_test.dart
View file @
3961306b
...
@@ -160,7 +160,7 @@ void main() {
...
@@ -160,7 +160,7 @@ void main() {
await
tester
.
pumpWidget
(
new
Localizations
(
await
tester
.
pumpWidget
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/material/popup_menu_test.dart
View file @
3961306b
...
@@ -442,7 +442,7 @@ class _TestAppState extends State<TestApp> {
...
@@ -442,7 +442,7 @@ class _TestAppState extends State<TestApp> {
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
new
Localizations
(
return
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/material/scaffold_test.dart
View file @
3961306b
...
@@ -363,7 +363,7 @@ void main() {
...
@@ -363,7 +363,7 @@ void main() {
child:
const
Text
(
'body'
),
child:
const
Text
(
'body'
),
),
),
),
),
persistentFooterButtons:
<
Widget
>[
const
Placeholder
()],
persistentFooterButtons:
const
<
Widget
>[
const
Placeholder
()],
),
),
),
),
),
),
...
...
packages/flutter/test/material/snack_bar_test.dart
View file @
3961306b
...
@@ -360,7 +360,7 @@ void main() {
...
@@ -360,7 +360,7 @@ void main() {
),
),
child:
new
Scaffold
(
child:
new
Scaffold
(
bottomNavigationBar:
new
BottomNavigationBar
(
bottomNavigationBar:
new
BottomNavigationBar
(
items:
<
BottomNavigationBarItem
>[
items:
const
<
BottomNavigationBarItem
>[
const
BottomNavigationBarItem
(
icon:
const
Icon
(
Icons
.
favorite
),
title:
const
Text
(
'Animutation'
)),
const
BottomNavigationBarItem
(
icon:
const
Icon
(
Icons
.
favorite
),
title:
const
Text
(
'Animutation'
)),
const
BottomNavigationBarItem
(
icon:
const
Icon
(
Icons
.
block
),
title:
const
Text
(
'Zombo.com'
)),
const
BottomNavigationBarItem
(
icon:
const
Icon
(
Icons
.
block
),
title:
const
Text
(
'Zombo.com'
)),
],
],
...
...
packages/flutter/test/material/tabs_test.dart
View file @
3961306b
...
@@ -17,7 +17,7 @@ import '../widgets/semantics_tester.dart';
...
@@ -17,7 +17,7 @@ import '../widgets/semantics_tester.dart';
Widget
boilerplate
(
{
Widget
child
,
TextDirection
textDirection:
TextDirection
.
ltr
})
{
Widget
boilerplate
(
{
Widget
child
,
TextDirection
textDirection:
TextDirection
.
ltr
})
{
return
new
Localizations
(
return
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
],
],
...
@@ -1661,7 +1661,7 @@ void main() {
...
@@ -1661,7 +1661,7 @@ void main() {
alignment:
Alignment
.
topLeft
,
alignment:
Alignment
.
topLeft
,
child:
new
TabBar
(
child:
new
TabBar
(
controller:
controller
,
controller:
controller
,
tabs:
<
Tab
>[
tabs:
const
<
Tab
>[
const
Tab
(
text:
'LEFT'
),
const
Tab
(
text:
'LEFT'
),
const
Tab
(
text:
'RIGHT'
),
const
Tab
(
text:
'RIGHT'
),
],
],
...
...
packages/flutter/test/material/time_picker_test.dart
View file @
3961306b
...
@@ -229,7 +229,7 @@ void _tests() {
...
@@ -229,7 +229,7 @@ void _tests() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Localizations
(
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/widgets/nested_scroll_view_test.dart
View file @
3961306b
...
@@ -25,7 +25,7 @@ class _CustomPhysics extends ClampingScrollPhysics {
...
@@ -25,7 +25,7 @@ class _CustomPhysics extends ClampingScrollPhysics {
Widget
buildTest
(
{
ScrollController
controller
,
String
title:
'TTTTTTTT'
})
{
Widget
buildTest
(
{
ScrollController
controller
,
String
title:
'TTTTTTTT'
})
{
return
new
Localizations
(
return
new
Localizations
(
locale:
const
Locale
(
'en'
,
'US'
),
locale:
const
Locale
(
'en'
,
'US'
),
delegates:
<
LocalizationsDelegate
<
dynamic
>>[
delegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
DefaultMaterialLocalizations
.
delegate
,
DefaultMaterialLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
DefaultWidgetsLocalizations
.
delegate
,
],
],
...
...
packages/flutter/test/widgets/parent_data_test.dart
View file @
3961306b
...
@@ -253,7 +253,7 @@ void main() {
...
@@ -253,7 +253,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Stack
(
new
Stack
(
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
children:
<
Widget
>[
children:
const
<
Widget
>[
const
Positioned
(
const
Positioned
(
top:
5.0
,
top:
5.0
,
bottom:
8.0
,
bottom:
8.0
,
...
@@ -275,7 +275,7 @@ void main() {
...
@@ -275,7 +275,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
new
Container
(
new
Container
(
child:
new
Row
(
child:
new
Row
(
children:
<
Widget
>[
children:
const
<
Widget
>[
const
Positioned
(
const
Positioned
(
top:
6.0
,
top:
6.0
,
left:
7.0
,
left:
7.0
,
...
...
packages/flutter/test/widgets/semantics_test.dart
View file @
3961306b
...
@@ -913,7 +913,7 @@ void main() {
...
@@ -913,7 +913,7 @@ void main() {
const
Text
(
'Label 1'
),
const
Text
(
'Label 1'
),
const
Text
(
'Label 2'
),
const
Text
(
'Label 2'
),
new
Row
(
new
Row
(
children:
<
Widget
>[
children:
const
<
Widget
>[
const
Text
(
'Label 3'
),
const
Text
(
'Label 3'
),
const
Text
(
'Label 4'
),
const
Text
(
'Label 4'
),
const
Text
(
'Label 5'
),
const
Text
(
'Label 5'
),
...
@@ -976,7 +976,7 @@ void main() {
...
@@ -976,7 +976,7 @@ void main() {
new
Transform
.
rotate
(
new
Transform
.
rotate
(
angle:
pi
/
2.0
,
angle:
pi
/
2.0
,
child:
new
Row
(
child:
new
Row
(
children:
<
Widget
>[
children:
const
<
Widget
>[
const
Text
(
'Label 3'
),
const
Text
(
'Label 3'
),
const
Text
(
'Label 4'
),
const
Text
(
'Label 4'
),
const
Text
(
'Label 5'
),
const
Text
(
'Label 5'
),
...
...
packages/flutter/test/widgets/slivers_appbar_floating_pinned_test.dart
View file @
3961306b
...
@@ -15,7 +15,7 @@ void main() {
...
@@ -15,7 +15,7 @@ void main() {
data:
const
MediaQueryData
(),
data:
const
MediaQueryData
(),
child:
new
CustomScrollView
(
child:
new
CustomScrollView
(
controller:
controller
,
controller:
controller
,
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverAppBar
(
floating:
true
,
pinned:
true
,
expandedHeight:
200.0
,
title:
const
Text
(
'A'
)),
const
SliverAppBar
(
floating:
true
,
pinned:
true
,
expandedHeight:
200.0
,
title:
const
Text
(
'A'
)),
const
SliverAppBar
(
primary:
false
,
pinned:
true
,
title:
const
Text
(
'B'
)),
const
SliverAppBar
(
primary:
false
,
pinned:
true
,
title:
const
Text
(
'B'
)),
const
SliverList
(
const
SliverList
(
...
...
packages/flutter/test/widgets/slivers_block_test.dart
View file @
3961306b
...
@@ -14,7 +14,7 @@ Future<Null> test(WidgetTester tester, double offset) {
...
@@ -14,7 +14,7 @@ Future<Null> test(WidgetTester tester, double offset) {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
new
Viewport
(
child:
new
Viewport
(
offset:
new
ViewportOffset
.
fixed
(
offset
),
offset:
new
ViewportOffset
.
fixed
(
offset
),
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverList
(
const
SliverList
(
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
const
SizedBox
(
height:
400.0
,
child:
const
Text
(
'a'
)),
const
SizedBox
(
height:
400.0
,
child:
const
Text
(
'a'
)),
...
@@ -150,7 +150,7 @@ void main() {
...
@@ -150,7 +150,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
new
Viewport
(
child:
new
Viewport
(
offset:
offset
,
offset:
offset
,
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverList
(
const
SliverList
(
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
const
SizedBox
(
height:
251.0
,
child:
const
Text
(
'a'
)),
const
SizedBox
(
height:
251.0
,
child:
const
Text
(
'a'
)),
...
@@ -261,7 +261,7 @@ void main() {
...
@@ -261,7 +261,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
new
Viewport
(
child:
new
Viewport
(
offset:
new
ViewportOffset
.
zero
(),
offset:
new
ViewportOffset
.
zero
(),
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverList
(
const
SliverList
(
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
const
SizedBox
(
height:
400.0
,
child:
const
Text
(
'a'
)),
const
SizedBox
(
height:
400.0
,
child:
const
Text
(
'a'
)),
...
@@ -279,7 +279,7 @@ void main() {
...
@@ -279,7 +279,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
new
Viewport
(
child:
new
Viewport
(
offset:
new
ViewportOffset
.
fixed
(
100.0
),
offset:
new
ViewportOffset
.
fixed
(
100.0
),
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverList
(
const
SliverList
(
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
const
SizedBox
(
height:
400.0
,
child:
const
Text
(
'a'
)),
const
SizedBox
(
height:
400.0
,
child:
const
Text
(
'a'
)),
...
@@ -297,7 +297,7 @@ void main() {
...
@@ -297,7 +297,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
new
Viewport
(
child:
new
Viewport
(
offset:
new
ViewportOffset
.
fixed
(
100.0
),
offset:
new
ViewportOffset
.
fixed
(
100.0
),
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverList
(
const
SliverList
(
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
const
SizedBox
(
height:
4000.0
,
child:
const
Text
(
'a'
)),
const
SizedBox
(
height:
4000.0
,
child:
const
Text
(
'a'
)),
...
@@ -315,7 +315,7 @@ void main() {
...
@@ -315,7 +315,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
new
Viewport
(
child:
new
Viewport
(
offset:
new
ViewportOffset
.
zero
(),
offset:
new
ViewportOffset
.
zero
(),
slivers:
<
Widget
>[
slivers:
const
<
Widget
>[
const
SliverList
(
const
SliverList
(
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
delegate:
const
SliverChildListDelegate
(
const
<
Widget
>[
const
SizedBox
(
height:
4000.0
,
child:
const
Text
(
'a'
)),
const
SizedBox
(
height:
4000.0
,
child:
const
Text
(
'a'
)),
...
...
packages/flutter_localizations/test/date_time_test.dart
View file @
3961306b
...
@@ -31,7 +31,7 @@ void main() {
...
@@ -31,7 +31,7 @@ void main() {
await
tester
.
pumpWidget
(
new
MaterialApp
(
await
tester
.
pumpWidget
(
new
MaterialApp
(
supportedLocales:
<
Locale
>[
locale
],
supportedLocales:
<
Locale
>[
locale
],
locale:
locale
,
locale:
locale
,
localizationsDelegates:
<
LocalizationsDelegate
<
dynamic
>>[
localizationsDelegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
GlobalMaterialLocalizations
.
delegate
,
GlobalMaterialLocalizations
.
delegate
,
],
],
home:
new
Builder
(
builder:
(
BuildContext
context
)
{
home:
new
Builder
(
builder:
(
BuildContext
context
)
{
...
@@ -85,7 +85,7 @@ void main() {
...
@@ -85,7 +85,7 @@ void main() {
await
tester
.
pumpWidget
(
new
MaterialApp
(
await
tester
.
pumpWidget
(
new
MaterialApp
(
supportedLocales:
<
Locale
>[
locale
],
supportedLocales:
<
Locale
>[
locale
],
locale:
locale
,
locale:
locale
,
localizationsDelegates:
<
LocalizationsDelegate
<
dynamic
>>[
localizationsDelegates:
const
<
LocalizationsDelegate
<
dynamic
>>[
GlobalMaterialLocalizations
.
delegate
,
GlobalMaterialLocalizations
.
delegate
,
],
],
home:
new
Builder
(
builder:
(
BuildContext
context
)
{
home:
new
Builder
(
builder:
(
BuildContext
context
)
{
...
...
packages/flutter_tools/lib/src/base/utils.dart
View file @
3961306b
...
@@ -15,7 +15,7 @@ import 'context.dart';
...
@@ -15,7 +15,7 @@ import 'context.dart';
import
'file_system.dart'
;
import
'file_system.dart'
;
import
'platform.dart'
;
import
'platform.dart'
;
final
BotDetector
_kBotDetector
=
const
BotDetector
();
const
BotDetector
_kBotDetector
=
const
BotDetector
();
class
BotDetector
{
class
BotDetector
{
const
BotDetector
();
const
BotDetector
();
...
...
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