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
b0492cc9
Unverified
Commit
b0492cc9
authored
Apr 07, 2020
by
Konstantin Scheglov
Committed by
GitHub
Apr 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix newly reported prefer_const_constructors lints. (#54176)
parent
ba18e99d
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
15 deletions
+15
-15
print_correct_local_widget_test.dart
...d_tests/flutter_test/print_correct_local_widget_test.dart
+1
-1
animated_placeholder.dart
...chmarks/macrobenchmarks/lib/src/animated_placeholder.dart
+1
-1
backdrop_filter.dart
dev/benchmarks/macrobenchmarks/lib/src/backdrop_filter.dart
+1
-1
color_filter_and_fade.dart
...hmarks/macrobenchmarks/lib/src/color_filter_and_fade.dart
+2
-2
picture_cache.dart
dev/benchmarks/macrobenchmarks/lib/src/picture_cache.dart
+1
-1
post_backdrop_filter.dart
...chmarks/macrobenchmarks/lib/src/post_backdrop_filter.dart
+1
-1
main.dart
...d_splash_screens/splash_screen_kitchen_sink/lib/main.dart
+1
-1
main.dart
examples/image_list/lib/main.dart
+1
-1
main.dart
examples/splash/lib/main.dart
+1
-1
text_test.dart
packages/flutter_localizations/test/text_test.dart
+4
-4
ios_emulators.dart
packages/flutter_tools/lib/src/ios/ios_emulators.dart
+1
-1
No files found.
dev/automated_tests/flutter_test/print_correct_local_widget_test.dart
View file @
b0492cc9
...
@@ -19,7 +19,7 @@ void main() {
...
@@ -19,7 +19,7 @@ void main() {
width:
400.0
,
width:
400.0
,
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Icon
(
Icons
.
message
),
const
Icon
(
Icons
.
message
),
Column
(
Column
(
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
dev/benchmarks/macrobenchmarks/lib/src/animated_placeholder.dart
View file @
b0492cc9
...
@@ -32,7 +32,7 @@ class AnimatedPlaceholderPage extends StatelessWidget {
...
@@ -32,7 +32,7 @@ class AnimatedPlaceholderPage extends StatelessWidget {
gridDelegate:
const
SliverGridDelegateWithFixedCrossAxisCount
(
crossAxisCount:
10
),
gridDelegate:
const
SliverGridDelegateWithFixedCrossAxisCount
(
crossAxisCount:
10
),
itemBuilder:
(
BuildContext
context
,
int
index
)
{
itemBuilder:
(
BuildContext
context
,
int
index
)
{
return
FadeInImage
(
return
FadeInImage
(
placeholder:
DelayedBase64Image
(
Duration
.
zero
,
kAnimatedGif
),
placeholder:
const
DelayedBase64Image
(
Duration
.
zero
,
kAnimatedGif
),
image:
DelayedBase64Image
(
Duration
(
milliseconds:
100
*
index
),
kBlueSquare
),
image:
DelayedBase64Image
(
Duration
(
milliseconds:
100
*
index
),
kBlueSquare
),
);
);
},
},
...
...
dev/benchmarks/macrobenchmarks/lib/src/backdrop_filter.dart
View file @
b0492cc9
...
@@ -66,7 +66,7 @@ class _BackdropFilterPageState extends State<BackdropFilterPage> with TickerProv
...
@@ -66,7 +66,7 @@ class _BackdropFilterPageState extends State<BackdropFilterPage> with TickerProv
backgroundColor:
Colors
.
grey
,
backgroundColor:
Colors
.
grey
,
body:
Stack
(
body:
Stack
(
children:
<
Widget
>[
children:
<
Widget
>[
Text
(
'0'
*
10000
,
style:
TextStyle
(
color:
Colors
.
yellow
)),
Text
(
'0'
*
10000
,
style:
const
TextStyle
(
color:
Colors
.
yellow
)),
Column
(
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
<
Widget
>[
children:
<
Widget
>[
...
...
dev/benchmarks/macrobenchmarks/lib/src/color_filter_and_fade.dart
View file @
b0492cc9
...
@@ -24,9 +24,9 @@ class _ColorFilterAndFadePageState extends State<ColorFilterAndFadePage> with Ti
...
@@ -24,9 +24,9 @@ class _ColorFilterAndFadePageState extends State<ColorFilterAndFadePage> with Ti
width:
24
,
width:
24
,
height:
24
,
height:
24
,
useColorFilter:
_useColorFilter
,
useColorFilter:
_useColorFilter
,
shadow:
ui
.
Shadow
(
shadow:
const
ui
.
Shadow
(
color:
Colors
.
black45
,
color:
Colors
.
black45
,
offset:
const
Offset
(
0.0
,
2.0
),
offset:
Offset
(
0.0
,
2.0
),
blurRadius:
4.0
,
blurRadius:
4.0
,
),
),
);
);
...
...
dev/benchmarks/macrobenchmarks/lib/src/picture_cache.dart
View file @
b0492cc9
...
@@ -263,7 +263,7 @@ class ListItem extends StatelessWidget {
...
@@ -263,7 +263,7 @@ class ListItem extends StatelessWidget {
),
),
ConstrainedBox
(
ConstrainedBox
(
constraints:
const
BoxConstraints
(
maxWidth:
250
),
constraints:
const
BoxConstraints
(
maxWidth:
250
),
child:
Text
(
child:
const
Text
(
kMockName
,
kMockName
,
maxLines:
1
,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
overflow:
TextOverflow
.
ellipsis
,
...
...
dev/benchmarks/macrobenchmarks/lib/src/post_backdrop_filter.dart
View file @
b0492cc9
...
@@ -52,7 +52,7 @@ class _PostBackdropFilterPageState extends State<PostBackdropFilterPage> with Ti
...
@@ -52,7 +52,7 @@ class _PostBackdropFilterPageState extends State<PostBackdropFilterPage> with Ti
backgroundColor:
Colors
.
grey
,
backgroundColor:
Colors
.
grey
,
body:
Stack
(
body:
Stack
(
children:
<
Widget
>[
children:
<
Widget
>[
Text
(
'0'
*
10000
,
style:
TextStyle
(
color:
Colors
.
yellow
)),
Text
(
'0'
*
10000
,
style:
const
TextStyle
(
color:
Colors
.
yellow
)),
Column
(
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
<
Widget
>[
children:
<
Widget
>[
...
...
dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink/lib/main.dart
View file @
b0492cc9
...
@@ -108,7 +108,7 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -108,7 +108,7 @@ class _MyHomePageState extends State<MyHomePage> {
floatingActionButton:
FloatingActionButton
(
floatingActionButton:
FloatingActionButton
(
onPressed:
_incrementCounter
,
onPressed:
_incrementCounter
,
tooltip:
'Increment'
,
tooltip:
'Increment'
,
child:
Icon
(
Icons
.
add
),
child:
const
Icon
(
Icons
.
add
),
),
// This trailing comma makes auto-formatting nicer for build methods.
),
// This trailing comma makes auto-formatting nicer for build methods.
);
);
}
}
...
...
examples/image_list/lib/main.dart
View file @
b0492cc9
...
@@ -210,7 +210,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
...
@@ -210,7 +210,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
floatingActionButton:
FloatingActionButton
(
floatingActionButton:
FloatingActionButton
(
onPressed:
_incrementCounter
,
onPressed:
_incrementCounter
,
tooltip:
'Increment'
,
tooltip:
'Increment'
,
child:
Icon
(
Icons
.
add
),
child:
const
Icon
(
Icons
.
add
),
),
),
);
);
}
}
...
...
examples/splash/lib/main.dart
View file @
b0492cc9
...
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
...
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
void
main
(
)
{
void
main
(
)
{
runApp
(
runApp
(
DecoratedBox
(
DecoratedBox
(
decoration:
BoxDecoration
(
color:
Colors
.
white
),
decoration:
const
BoxDecoration
(
color:
Colors
.
white
),
child:
Center
(
child:
Center
(
child:
Column
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
...
...
packages/flutter_localizations/test/text_test.dart
View file @
b0492cc9
...
@@ -43,14 +43,14 @@ void main() {
...
@@ -43,14 +43,14 @@ void main() {
},
},
itemBuilder:
(
BuildContext
context
)
{
itemBuilder:
(
BuildContext
context
)
{
return
<
PopupMenuItem
<
int
>>[
return
<
PopupMenuItem
<
int
>>[
PopupMenuItem
<
int
>(
const
PopupMenuItem
<
int
>(
value:
1
,
value:
1
,
child:
Text
(
child:
Text
(
'hello, world'
,
'hello, world'
,
style:
TextStyle
(
color:
Colors
.
blue
),
style:
TextStyle
(
color:
Colors
.
blue
),
),
),
),
),
PopupMenuItem
<
int
>(
const
PopupMenuItem
<
int
>(
value:
2
,
value:
2
,
child:
Text
(
child:
Text
(
'你好,世界'
,
'你好,世界'
,
...
@@ -129,14 +129,14 @@ void main() {
...
@@ -129,14 +129,14 @@ void main() {
},
},
itemBuilder:
(
BuildContext
context
)
{
itemBuilder:
(
BuildContext
context
)
{
return
<
PopupMenuItem
<
int
>>[
return
<
PopupMenuItem
<
int
>>[
PopupMenuItem
<
int
>(
const
PopupMenuItem
<
int
>(
value:
1
,
value:
1
,
child:
Text
(
child:
Text
(
'hello, world'
,
'hello, world'
,
style:
TextStyle
(
color:
Colors
.
blue
),
style:
TextStyle
(
color:
Colors
.
blue
),
),
),
),
),
PopupMenuItem
<
int
>(
const
PopupMenuItem
<
int
>(
value:
2
,
value:
2
,
child:
Text
(
child:
Text
(
'你好,世界'
,
'你好,世界'
,
...
...
packages/flutter_tools/lib/src/ios/ios_emulators.dart
View file @
b0492cc9
...
@@ -72,5 +72,5 @@ List<IOSEmulator> getEmulators() {
...
@@ -72,5 +72,5 @@ List<IOSEmulator> getEmulators() {
return
<
IOSEmulator
>[];
return
<
IOSEmulator
>[];
}
}
return
<
IOSEmulator
>[
IOSEmulator
(
iosSimulatorId
)];
return
<
IOSEmulator
>[
const
IOSEmulator
(
iosSimulatorId
)];
}
}
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