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
205335f0
Commit
205335f0
authored
Sep 21, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix fn3 build errors
Add a LeafRenderObjectElement, fix a test to use the new contract.
parent
547c324d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
framework.dart
packages/flutter/lib/src/fn3/framework.dart
+4
-0
stateful_component_test.dart
packages/unit/test/fn3/stateful_component_test.dart
+2
-1
No files found.
packages/flutter/lib/src/fn3/framework.dart
View file @
205335f0
...
...
@@ -466,6 +466,10 @@ class RenderObjectElement<T extends RenderObjectWidget> extends Element<T> {
}
}
class
LeafRenderObjectElement
<
T
extends
RenderObjectWidget
>
extends
RenderObjectElement
<
T
>
{
LeafRenderObjectElement
(
T
widget
):
super
(
widget
);
}
final
Object
_uniqueChild
=
new
Object
();
class
OneChildRenderObjectElement
<
T
extends
OneChildRenderObjectWidget
>
extends
RenderObjectElement
<
T
>
{
...
...
packages/unit/test/fn3/stateful_component_test.dart
View file @
205335f0
...
...
@@ -10,10 +10,11 @@ class TestComponentConfig extends StatefulComponent {
final
Widget
left
;
final
Widget
right
;
TestComponentState
createState
()
=>
new
TestComponentState
();
TestComponentState
createState
()
=>
new
TestComponentState
(
this
);
}
class
TestComponentState
extends
ComponentState
<
TestComponentConfig
>
{
TestComponentState
(
TestComponentConfig
config
):
super
(
config
);
bool
_showLeft
=
true
;
void
flip
()
{
...
...
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