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
cb391081
Commit
cb391081
authored
Dec 12, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes in comments and style.
parent
e8efac19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
http.dart
packages/flutter/lib/src/http/http.dart
+1
-1
box_painter.dart
packages/flutter/lib/src/painting/box_painter.dart
+2
-1
auto_layout.dart
packages/flutter/lib/src/rendering/auto_layout.dart
+8
-9
No files found.
packages/flutter/lib/src/http/http.dart
View file @
cb391081
...
...
@@ -4,7 +4,7 @@
/// A [Future]-based library for making HTTP requests.
///
///
Let
library is based on Dart's `http` package, but we have removed the
///
This
library is based on Dart's `http` package, but we have removed the
/// dependency on mirrors and added a `mojo`-based HTTP client.
library
http
;
...
...
packages/flutter/lib/src/painting/box_painter.dart
View file @
cb391081
...
...
@@ -644,7 +644,8 @@ class BackgroundImage {
final
List
<
VoidCallback
>
_listeners
=
<
VoidCallback
>[];
/// Adds a listener for background-image changes (e.g., arrives from the network).
/// Adds a listener for background-image changes (e.g., for when it arrives
/// from the network).
void
_addChangeListener
(
VoidCallback
listener
)
{
// We add the listener to the _imageResource first so that the first change
// listener doesn't get callback synchronously if the image resource is
...
...
packages/flutter/lib/src/rendering/auto_layout.dart
View file @
cb391081
...
...
@@ -12,8 +12,14 @@ import 'object.dart';
/// variables. Used as a mixin by layout containers and parent data instances
/// of render boxes taking part in auto layout.
abstract
class
_AutoLayoutParamMixin
{
// Ideally, the edges would all be final, but then they would have to be
// initialized before the constructor. Not sure how to do that using a Mixin.
void
_setupLayoutParameters
(
dynamic
context
)
{
_leftEdge
=
new
al
.
Param
.
withContext
(
context
);
_rightEdge
=
new
al
.
Param
.
withContext
(
context
);
_topEdge
=
new
al
.
Param
.
withContext
(
context
);
_bottomEdge
=
new
al
.
Param
.
withContext
(
context
);
}
al
.
Param
_leftEdge
;
al
.
Param
_rightEdge
;
al
.
Param
_topEdge
;
...
...
@@ -32,13 +38,6 @@ abstract class _AutoLayoutParamMixin {
al
.
Expression
get
horizontalCenter
=>
(
_leftEdge
+
_rightEdge
)
/
al
.
cm
(
2.0
);
al
.
Expression
get
verticalCenter
=>
(
_topEdge
+
_bottomEdge
)
/
al
.
cm
(
2.0
);
void
_setupLayoutParameters
(
dynamic
context
)
{
_leftEdge
=
new
al
.
Param
.
withContext
(
context
);
_rightEdge
=
new
al
.
Param
.
withContext
(
context
);
_topEdge
=
new
al
.
Param
.
withContext
(
context
);
_bottomEdge
=
new
al
.
Param
.
withContext
(
context
);
}
void
_setupEditVariablesInSolver
(
al
.
Solver
solver
,
double
priority
)
{
solver
.
addEditVariables
(<
al
.
Variable
>[
_leftEdge
.
variable
,
...
...
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