- 05 Oct, 2015 1 commit
-
-
Hixie authored
Focus.at() and company should be on Focus, not FocusState. _notifyDescendants() was using the wrong runtimeType. Let InheritedWidget update the descendants during build. When you setState() during build, assert that you're not markNeedsBuild()ing someone who isn't a descendant. Typo in Widget.toString().
-
- 03 Oct, 2015 1 commit
-
-
Adam Barth authored
This patch prepares us to switch to using integers when handing off the animation time from the engine to the framework.
-
- 01 Oct, 2015 3 commits
-
-
Hixie authored
- Rename EdgeDims constructor to EdgeDims.TRBL(). - Add operator== to Size and Offset so that you can compare Size to DebugSize in checked mode. - Add Size.lerp(). - Add various operators to EdgeDims. (*, /, ~/, %) - Add EdgeDims.lerp(). - Update style guide. I went there to fix an EdgeDims constructor example, and stayed because some recent things came up and I wanted to add them before I forgot.
-
Adam Barth authored
This patch prepares us to move these elements around in the tree.
-
Adam Barth authored
-
- 29 Sep, 2015 1 commit
-
-
Hixie authored
-
- 28 Sep, 2015 1 commit
-
-
Adam Barth authored
This patch makes a number of changes: 1) buildDirtyComponents now prevents all calls to setState, not just those higher in the tree. This change is necessary for consistency with MixedViewport and HomogeneousViewport because those widgets already build subwidgets with that restriction. If the "normal" build didn't enforce that rule, then some widgets would break when put inside a mixed or homogeneous viewport. 2) We now notify global key listeners in a microtask after beginFrame. That means setState is legal in these callbacks and that we'll produce another frame if someone calls setState in such a callback.
-
- 26 Sep, 2015 1 commit
-
-
Adam Barth authored
-
- 23 Sep, 2015 3 commits
-
-
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!')); } ```
-
- 22 Sep, 2015 2 commits
-
-
Hixie authored
Fixes errors from #1285 and #1281.
-
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.
-