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
f81175eb
Commit
f81175eb
authored
Sep 14, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1159 from abarth/more_docs
Address more comments from #1153
parents
d176b308
48fbd6e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+13
-5
No files found.
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
f81175eb
...
...
@@ -149,10 +149,18 @@ class RenderConstrainedBox extends RenderProxyBox {
///
/// The width of this render object is the largest width permited by the layout
/// constraints. The height of the render object is determined by applying the
/// given aspect ratio to the width.
/// given aspect ratio to the width, expressed as a ratio of width to height.
/// For example, a 16:9 width:height aspect ratio would have a value of 16.0/9.0.
///
/// The aspect ratio is expressed as a ratio of width to height. For example,
/// a 16:9 width:height aspect ratio would have a value of 16.0/9.0.
/// For example, given an aspect ratio of 2.0 and layout constraints that
/// require the width to be between 0.0 and 100.0 and the height to be between
/// 0.0 and 100.0, we'll select a width of 100.0 (the biggest allowed) and a
/// height of 50.0 (to match the aspect ratio).
///
/// In that same situation, if the aspect ratio is 0.5, we'll also select a
/// width of 100.0 (still the biggest allowed) and we'll attempt to use a height
/// of 200.0. Unfortunately, that violates the constraints and we'll end up with
/// a height of 100.0 instead.
class
RenderAspectRatio
extends
RenderProxyBox
{
RenderAspectRatio
({
RenderBox
child
,
...
...
@@ -464,7 +472,7 @@ class RenderClipRRect extends RenderProxyBox {
assert
(
_yRadius
!=
null
);
}
/// The radius of the rounded corners in the horizontal direction
/// The radius of the rounded corners in the horizontal direction
in logical pixels
///
/// Values are clamped to be between zero and half the width of the render
/// object.
...
...
@@ -478,7 +486,7 @@ class RenderClipRRect extends RenderProxyBox {
markNeedsPaint
();
}
/// The radius of the rounded corners in the vertical direction
/// The radius of the rounded corners in the vertical direction
in logical pixels
///
/// Values are clamped to be between zero and half the height of the render
/// object.
...
...
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