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
28defe50
Commit
28defe50
authored
Feb 08, 2017
by
Alexandre Ardhuin
Committed by
Adam Barth
Feb 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use const constructor (#7968)
parent
be99a04d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dialog.dart
packages/flutter/lib/src/cupertino/dialog.dart
+2
-2
switch.dart
packages/flutter/lib/src/cupertino/switch.dart
+1
-1
No files found.
packages/flutter/lib/src/cupertino/dialog.dart
View file @
28defe50
...
...
@@ -123,7 +123,7 @@ class CupertinoAlertDialog extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
final
List
<
Widget
>
children
=
<
Widget
>[];
children
.
add
(
new
SizedBox
(
height:
20.0
));
children
.
add
(
const
SizedBox
(
height:
20.0
));
if
(
title
!=
null
)
{
children
.
add
(
new
Padding
(
...
...
@@ -150,7 +150,7 @@ class CupertinoAlertDialog extends StatelessWidget {
));
}
children
.
add
(
new
SizedBox
(
height:
20.0
));
children
.
add
(
const
SizedBox
(
height:
20.0
));
if
(
actions
!=
null
)
{
children
.
add
(
new
_CupertinoButtonBar
(
...
...
packages/flutter/lib/src/cupertino/switch.dart
View file @
28defe50
...
...
@@ -143,7 +143,7 @@ class _RenderCupertinoSwitch extends RenderConstrainedBox implements SemanticsAc
_activeColor
=
activeColor
,
_onChanged
=
onChanged
,
_vsync
=
vsync
,
super
(
additionalConstraints:
new
BoxConstraints
.
tightFor
(
width:
_kSwitchWidth
,
height:
_kSwitchHeight
))
{
super
(
additionalConstraints:
const
BoxConstraints
.
tightFor
(
width:
_kSwitchWidth
,
height:
_kSwitchHeight
))
{
assert
(
value
!=
null
);
assert
(
activeColor
!=
null
);
assert
(
vsync
!=
null
);
...
...
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