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
a5593b16
Commit
a5593b16
authored
Apr 10, 2017
by
Yegor
Committed by
GitHub
Apr 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix analyzer warning: use const where possible (#9320)
parent
5efbe05f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
main.dart
dev/benchmarks/complex_layout/lib/main.dart
+3
-3
card_collection.dart
dev/manual_tests/card_collection.dart
+1
-1
page_view.dart
dev/manual_tests/page_view.dart
+1
-1
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+1
-1
version.dart
packages/flutter_tools/lib/src/version.dart
+1
-1
No files found.
dev/benchmarks/complex_layout/lib/main.dart
View file @
a5593b16
...
...
@@ -482,11 +482,11 @@ class ItemGalleryBox extends StatelessWidget {
new
Row
(
children:
<
Widget
>[
new
IconButton
(
icon:
new
Icon
(
Icons
.
share
),
icon:
const
Icon
(
Icons
.
share
),
onPressed:
()
{
print
(
'Pressed share'
);
},
),
new
IconButton
(
icon:
new
Icon
(
Icons
.
event
),
icon:
const
Icon
(
Icons
.
event
),
onPressed:
()
{
print
(
'Pressed event'
);
},
),
new
Expanded
(
...
...
@@ -620,7 +620,7 @@ class FancyDrawerHeader extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
new
Container
(
decoration:
new
BoxDecoration
(
decoration:
const
BoxDecoration
(
backgroundColor:
Colors
.
purple
),
height:
200.0
...
...
dev/manual_tests/card_collection.dart
View file @
a5593b16
...
...
@@ -286,7 +286,7 @@ class CardCollectionState extends State<CardCollection> {
leftArrowIcon
=
new
Opacity
(
opacity:
0.1
,
child:
leftArrowIcon
);
// TODO(abarth): This icon is wrong in RTL.
Widget
rightArrowIcon
=
new
Icon
(
Icons
.
arrow_forward
,
size:
36.0
);
Widget
rightArrowIcon
=
const
Icon
(
Icons
.
arrow_forward
,
size:
36.0
);
if
(
_dismissDirection
==
DismissDirection
.
endToStart
)
rightArrowIcon
=
new
Opacity
(
opacity:
0.1
,
child:
rightArrowIcon
);
...
...
dev/manual_tests/page_view.dart
View file @
a5593b16
...
...
@@ -86,7 +86,7 @@ class PageViewAppState extends State<PageViewApp> {
children:
<
Widget
>[
const
DrawerHeader
(
child:
const
Center
(
child:
const
Text
(
'Options'
))),
new
ListTile
(
leading:
new
Icon
(
Icons
.
more_horiz
),
leading:
const
Icon
(
Icons
.
more_horiz
),
selected:
scrollDirection
==
Axis
.
horizontal
,
trailing:
const
Text
(
'Horizontal Layout'
),
onTap:
switchScrollDirection
,
...
...
packages/flutter/lib/src/material/app_bar.dart
View file @
a5593b16
...
...
@@ -378,7 +378,7 @@ class _AppBarState extends State<AppBar> {
if
(
leading
==
null
)
{
if
(
_hasDrawer
)
{
leading
=
new
IconButton
(
icon:
new
Icon
(
Icons
.
menu
),
icon:
const
Icon
(
Icons
.
menu
),
onPressed:
_handleDrawerButton
,
tooltip:
'Open navigation menu'
// TODO(ianh): Figure out how to localize this string
);
...
...
packages/flutter_tools/lib/src/version.dart
View file @
a5593b16
...
...
@@ -294,7 +294,7 @@ class VersionCheckStamp {
}
// Stamp is missing or is malformed.
return
new
VersionCheckStamp
();
return
const
VersionCheckStamp
();
}
static
VersionCheckStamp
fromJson
(
Map
<
String
,
String
>
json
)
{
...
...
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