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
2f3baf14
Commit
2f3baf14
authored
Dec 07, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parent data fixes
Add some missing functionality to ParentData subclasses. Fixes #474
parent
83ba4263
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
custom_layout.dart
packages/flutter/lib/src/rendering/custom_layout.dart
+8
-0
stack.dart
packages/flutter/lib/src/rendering/stack.dart
+1
-1
No files found.
packages/flutter/lib/src/rendering/custom_layout.dart
View file @
2f3baf14
...
...
@@ -7,6 +7,14 @@ import 'object.dart';
class
MultiChildLayoutParentData
extends
ContainerBoxParentDataMixin
<
RenderBox
>
{
Object
id
;
void
merge
(
MultiChildLayoutParentData
other
)
{
if
(
other
.
id
!=
null
)
id
=
other
.
id
;
super
.
merge
(
other
);
}
String
toString
()
=>
'
${super.toString()}
; id=
$id
'
;
}
abstract
class
MultiChildLayoutDelegate
{
...
...
packages/flutter/lib/src/rendering/stack.dart
View file @
2f3baf14
...
...
@@ -192,7 +192,7 @@ class StackParentData extends ContainerBoxParentDataMixin<RenderBox> {
/// children in the stack.
bool
get
isPositioned
=>
top
!=
null
||
right
!=
null
||
bottom
!=
null
||
left
!=
null
||
width
!=
null
||
height
!=
null
;
String
toString
()
=>
'
${super.toString()}
; top=
$top
; right=
$right
; bottom=
$bottom
, left=
$lef
t
'
;
String
toString
()
=>
'
${super.toString()}
; top=
$top
; right=
$right
; bottom=
$bottom
; left=
$left
; width=
$width
; height=
$heigh
t
'
;
}
abstract
class
RenderStackBase
extends
RenderBox
...
...
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