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
3118ae19
Unverified
Commit
3118ae19
authored
Sep 06, 2019
by
Konstantin Scheglov
Committed by
GitHub
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new prefer_const_constructors after analyzer fix. (#39917)
parent
02344c9c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
12 deletions
+11
-12
main.dart
dev/integration_tests/image_loading/lib/main.dart
+1
-1
main.dart
dev/integration_tests/web/lib/main.dart
+2
-2
focus.dart
dev/manual_tests/lib/focus.dart
+2
-2
hover.dart
dev/manual_tests/lib/hover.dart
+2
-2
fortnightly.dart
...les/flutter_gallery/lib/demo/fortnightly/fortnightly.dart
+1
-1
color_filter_test.dart
packages/flutter/test/widgets/color_filter_test.dart
+1
-2
extension_test.dart
packages/flutter_driver/test/src/extension_test.dart
+2
-2
No files found.
dev/integration_tests/image_loading/lib/main.dart
View file @
3118ae19
...
@@ -42,7 +42,7 @@ class _ImageLoaderState extends State<ImageLoader> {
...
@@ -42,7 +42,7 @@ class _ImageLoaderState extends State<ImageLoader> {
void
initState
()
{
void
initState
()
{
// This is not an image, but we don't care since we're using a faked
// This is not an image, but we don't care since we're using a faked
// http client.
// http client.
final
NetworkImage
image
=
NetworkImage
(
'https://github.com/flutter/flutter'
);
const
NetworkImage
image
=
NetworkImage
(
'https://github.com/flutter/flutter'
);
final
ImageStream
stream
=
image
.
resolve
(
ImageConfiguration
.
empty
);
final
ImageStream
stream
=
image
.
resolve
(
ImageConfiguration
.
empty
);
ImageStreamListener
listener
;
ImageStreamListener
listener
;
listener
=
ImageStreamListener
(
listener
=
ImageStreamListener
(
...
...
dev/integration_tests/web/lib/main.dart
View file @
3118ae19
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
void
main
(
)
{
void
main
(
)
{
runApp
(
Center
(
runApp
(
const
Center
(
child:
const
Text
(
'Hello, World'
,
textDirection:
TextDirection
.
ltr
),
child:
Text
(
'Hello, World'
,
textDirection:
TextDirection
.
ltr
),
));
));
}
}
dev/manual_tests/lib/focus.dart
View file @
3118ae19
...
@@ -184,8 +184,8 @@ class _FocusDemoState extends State<FocusDemo> {
...
@@ -184,8 +184,8 @@ class _FocusDemoState extends State<FocusDemo> {
decoration:
InputDecoration
(
labelText:
'Enter Text'
,
filled:
true
),
decoration:
InputDecoration
(
labelText:
'Enter Text'
,
filled:
true
),
),
),
),
),
Padding
(
const
Padding
(
padding:
const
EdgeInsets
.
all
(
8.0
),
padding:
EdgeInsets
.
all
(
8.0
),
child:
TextField
(
child:
TextField
(
decoration:
InputDecoration
(
decoration:
InputDecoration
(
border:
OutlineInputBorder
(),
border:
OutlineInputBorder
(),
...
...
dev/manual_tests/lib/hover.dart
View file @
3118ae19
...
@@ -82,8 +82,8 @@ class _HoverDemoState extends State<HoverDemo> {
...
@@ -82,8 +82,8 @@ class _HoverDemoState extends State<HoverDemo> {
decoration:
InputDecoration
(
labelText:
'Enter Text'
,
filled:
true
),
decoration:
InputDecoration
(
labelText:
'Enter Text'
,
filled:
true
),
),
),
),
),
Padding
(
const
Padding
(
padding:
const
EdgeInsets
.
all
(
8.0
),
padding:
EdgeInsets
.
all
(
8.0
),
child:
TextField
(
child:
TextField
(
autofocus:
false
,
autofocus:
false
,
decoration:
InputDecoration
(
decoration:
InputDecoration
(
...
...
examples/flutter_gallery/lib/demo/fortnightly/fortnightly.dart
View file @
3118ae19
...
@@ -139,7 +139,7 @@ class FruitPage extends StatelessWidget {
...
@@ -139,7 +139,7 @@ class FruitPage extends StatelessWidget {
padding:
const
EdgeInsets
.
symmetric
(
vertical:
16
),
padding:
const
EdgeInsets
.
symmetric
(
vertical:
16
),
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
CircleAvatar
(
const
CircleAvatar
(
backgroundImage:
ExactAssetImage
(
backgroundImage:
ExactAssetImage
(
'people/square/trevor.png'
,
'people/square/trevor.png'
,
package:
'flutter_gallery_assets'
,
package:
'flutter_gallery_assets'
,
...
...
packages/flutter/test/widgets/color_filter_test.dart
View file @
3118ae19
...
@@ -26,8 +26,7 @@ void main() {
...
@@ -26,8 +26,7 @@ void main() {
});
});
testWidgets
(
'Color filter - sepia'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Color filter - sepia'
,
(
WidgetTester
tester
)
async
{
// TODO(dnfield): This should be const. https://github.com/dart-lang/sdk/issues/37503
const
ColorFilter
sepia
=
ColorFilter
.
matrix
(<
double
>[
final
ColorFilter
sepia
=
ColorFilter
.
matrix
(<
double
>[
0.39
,
0.769
,
0.189
,
0
,
0
,
//
0.39
,
0.769
,
0.189
,
0
,
0
,
//
0.349
,
0.686
,
0.168
,
0
,
0
,
//
0.349
,
0.686
,
0.168
,
0
,
0
,
//
0.272
,
0.534
,
0.131
,
0
,
0
,
//
0.272
,
0.534
,
0.131
,
0
,
0
,
//
...
...
packages/flutter_driver/test/src/extension_test.dart
View file @
3118ae19
...
@@ -652,10 +652,10 @@ void main() {
...
@@ -652,10 +652,10 @@ void main() {
}
}
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
Directionality
(
const
Directionality
(
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
Center
(
child:
Center
(
child:
const
Text
(
'Hello World'
,
key:
ValueKey
<
String
>(
'Text'
))
child:
Text
(
'Hello World'
,
key:
ValueKey
<
String
>(
'Text'
))
),
),
),
),
);
);
...
...
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