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
66c2cc2a
Commit
66c2cc2a
authored
Aug 18, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #670 from abarth/expand_dimension
Container should expand in dimensions without constraints
parents
882f32bb
516616aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
basic.dart
packages/flutter/lib/widgets/basic.dart
+3
-2
No files found.
packages/flutter/lib/widgets/basic.dart
View file @
66c2cc2a
...
...
@@ -339,7 +339,7 @@ class Container extends Component {
Widget
build
()
{
Widget
current
=
child
;
if
(
child
==
null
&&
width
==
null
&&
height
==
null
)
if
(
child
==
null
&&
(
width
==
null
||
height
==
null
)
)
current
=
new
ConstrainedBox
(
constraints:
BoxConstraints
.
expand
);
if
(
padding
!=
null
)
...
...
@@ -348,12 +348,13 @@ class Container extends Component {
if
(
decoration
!=
null
)
current
=
new
DecoratedBox
(
decoration:
decoration
,
child:
current
);
if
(
width
!=
null
||
height
!=
null
)
if
(
width
!=
null
||
height
!=
null
)
{
current
=
new
SizedBox
(
width:
width
,
height:
height
,
child:
current
);
}
if
(
constraints
!=
null
)
current
=
new
ConstrainedBox
(
constraints:
constraints
,
child:
current
);
...
...
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