- 23 Sep, 2015 11 commits
-
-
Hixie authored
In this new world, Listener is just a wrapper around a node in the render tree that hooks directly into the event handling logic.
-
Hixie authored
This allows people to use localToGlobal and company.
-
Viktor Lidholt authored
Removes artifacts from textured lines in sprites
-
Adam Barth authored
-
Adam Barth authored
-
Hixie authored
- Remove the unique objects used as slots since we decided 'null' was fine after all - Rename 'slot' to 'newSlot' when it's used as an argument to change the _slot field, to clarify which variable has the newer value - Remove the RenderObject registry since we'll do listeners a different way. This also removes handleEvent for the same reason. - Remove the TODOs for mount/unmount becoming didMount/didUnmount since the methods do in fact do the mounting/unmounting.
-
Hixie authored
In the old world, we had two ways to bind a Widget tree to a RenderObject node, one way for RenderView and one mostly untested way for other cases (it's only tested by the spinning_mixed.dart demo). For fn3, I made these the same code path. This patch also introduces GlobalKey, though the GlobalKey logic isn't hooked in yet. This is Hello World in the new world: ```dart import 'package:sky/src/fn3.dart'; void main() { runApp(new Text('Hello World!')); } ```
-
Adam Barth authored
-
Viktor Lidholt authored
-
Viktor Lidholt authored
-
Adam Barth authored
-
- 22 Sep, 2015 20 commits
-
-
Adam Barth authored
Add TagWidget to fn3
-
Adam Barth authored
-
Hans Muller authored
-
Hans Muller authored
Currently, fling scrolls animate far too long after the display has effectively stopped moving. Use the ScrollSimulation's tolerance property to stop the scrolling roughly when the display stops changing.
-
Hixie authored
Fixes errors from #1285 and #1281.
-
Hans Muller authored
-
Hans Muller authored
-
Hans Muller authored
-
Hixie authored
- I extracted the BuildScheduler into a separate binding.dart file. - Various changes to expose private members that are needed by binding.dart. - Registering the render objects for event dispatch. - Convert the tests to use the new binding mechanism. This doesn't yet have a RenderView or event handling.
-
Adam Barth authored
We'll need tag nodes before finishing Flex and Stack.
-
Ian Hickson authored
Fix scrolling of Block.
-
Hixie authored
Since our build function depends on scrollBehavior.isScrollable, any time we update scrollBehavior we are implicitly updating our state. As such, we must do so during a setState() call, or else we won't rebuild and might not bother to listen to the scroll gestures. This probably broke when we made Block not listen to gestures if it wasn't overflowing.
-
Adam Barth authored
There are some TODOs in this file that I'll address in the next patch.
-
Adam Barth authored
More dartdocs for fn3, refactor buildDirtyElements
-
Jason Simmons authored
Ensure that EditableText always shows a cursor
-
Jason Simmons authored
Some cleanup of the Sky analyzer script
-
Hixie authored
The buildDirtyElements() method now enforces that we only build deeper nodes and never go back to build higher nodes during a frame.
-
Adam Barth authored
-
Hixie authored
- move _uniqueChild earlier since a comment now mentions it earlier. - reorder methods in Element to more closely reflect call order. - change mount to be the place that sets the parent pointer, for consistency. - make the lifecycleState a purely debug-time thing for consistency. - make BuildableElement.unmount set dirty to false so that we won't build unmounted objects. - rename "updated" to "newWidget" for clarity. - change how we unmount things so that the slot is reset up to a RenderObjectElement, but not further, and don't reset the depth.
-
Adam Barth authored
-
- 21 Sep, 2015 9 commits
-
-
Adam Barth authored
All the use cases for EventDisposition are now addressed by the gesture detection system.
-
Adam Barth authored
We no longer have gesture events.
-
Hixie authored
Add a LeafRenderObjectElement, fix a test to use the new contract.
-
Hixie authored
- adds dartdocs - replaces config setter with didUpdateConfig() so that you can't replace the config outside of the system - renames didUnmount() with destroy(). - rename Component to StatelessComponent, ComponentConfiguration to StatefulComponent - move debug dump to end of file - renamed _holder to _element
-
Adam Barth authored
fn3 shouldn't rebuild components that don't change identity
-
Collin Jackson authored
add a test for scale gestures
-
Jason Simmons authored
* If no source path is provided, then run the analyzer on the Sky unit tests * Fix the filter for errors found in pub cache packages * Generalize the filter for the analyzer's "xx errors/warnings/hints found" status message Also fix a test that caused a warning in the analyzer.
-
Jason Simmons authored
Previously EditableText would render a text widget with no cursor if the text value was empty. Also adjust the height of the cursor widget to reflect the style's line height, and update the cursor painting to match.
-
Adam Barth authored
-