29153 Commits

Author SHA1 Message Date
Viktor Lidholt
2d0d82e0b0 Merge pull request #940 from vlidholt/master
Improvements to demo game
2015-08-28 16:16:51 -07:00
Adam Barth
ce2d9f374e Rev pub package 2015-08-28 16:13:02 -07:00
Viktor Lidholt
138e8fbf42 Adds power-ups to demo game 2015-08-28 16:07:00 -07:00
Viktor Lidholt
c7d2872d77 Adds new enemies and coin display to demo game 2015-08-28 16:07:00 -07:00
Hixie
eb84a0cae4 Set and remove the callbacks on the RenderObject when we create and remove it.
...and not when we mount and dismount.

Turns out that when we dismount, it's too late -- we've already set
renderObject to null.

We also mark the mixed viewport as dirty when it is removed from its parent.
Without this, we try to reuse the child nodes in subsequent syncs, which is a disaster.
2015-08-28 15:07:51 -07:00
Adam Barth
f4869c764b onScrollStart shouldn't have an offset
Instead, we pump a onScrollUpdate with the offset if there is an offset.
2015-08-28 15:07:30 -07:00
Hixie
06efe78546 Add support for 'direction' to MixedViewport. 2015-08-28 14:27:51 -07:00
Adam Barth
81b3bdd414 Merge pull request #930 from abarth/scroll
Add scroll gestures and use them in Scrollable
2015-08-28 14:05:36 -07:00
Adam Barth
e99ff36283 Add scroll gestures and use them in Scrollable
This patch replaces the scroll gestures used by Scrollable with ones detected
by the ScrollGestureDetector.
2015-08-28 13:59:46 -07:00
Hixie
9047830c2e Rationalise the Key API.
Add a way of having keys based on numeric types or DateTimes by having a ValueKey<T> class.
Remove the redundant ways of declaring things, except for leaving one shorthand -- you can say `new Key(s)` instead of `new ValueKey<String>(s)`.
2015-08-28 13:17:34 -07:00
Hixie
12e3897f40 Stop exporting framework.dart from basic.dart, since we now have widgets.dart exporting all of framework.dart. 2015-08-28 13:06:11 -07:00
Adam Barth
1674ecb6f1 Merge pull request #921 from abarth/use_tap
Use GestureDetector in the framework and examples
2015-08-28 12:52:51 -07:00
Ian Fischer
4f1b4e3e85 Merge pull request #922 from iansf/verbose_flag
Add a --verbose flag to sky_tool
2015-08-28 12:40:59 -07:00
Ian Fischer
0ee00fb2fa Add a verbose flag to sky_tool that logs all of shell commands being run.
Also clean up some formatting issues.
2015-08-28 11:00:54 -07:00
Adam Barth
dc84e882df Use GestureDetector in the framework and examples
We're now using it at the widget layer for everything except scrolling and
flinging.
2015-08-28 10:58:46 -07:00
Adam Barth
a46b83da80 Merge pull request #912 from abarth/tap
Add tap, show press, and long press gestures and use tap in IconButton
2015-08-28 10:23:01 -07:00
Adam Barth
95e80663db Add tap, show press, and long press gestures and use tap in IconButton
These gestures use the new gesture detection system.
2015-08-28 10:21:35 -07:00
Ian Fischer
d2e32b806d Merge pull request #916 from iansf/release_flag
Add --release flag
2015-08-28 09:56:33 -07:00
Ian Fischer
f3d9961af7 Add global release flag that will attempt to use release builds during install. 2015-08-28 09:37:54 -07:00
Adam Barth
01e7c6966e Fix analyzer warning 2015-08-27 22:59:24 -07:00
Adam Barth
d7e6f7b751 Merge pull request #908 from abarth/gesture_arena
Add GestureArena
2015-08-27 17:17:28 -07:00
Adam Barth
d8de2f9770 Add GestureArena
In the GestureArena, gestures will fight it out to see which is the real
ultimate gesture.
2015-08-27 17:17:12 -07:00
Eric Seidel
19766c05de Merge pull request #878 from eseidelGoogle/grid
Add basic Grid widget and test RenderGrid
2015-08-27 15:55:39 -07:00
Ian Hickson
ce51289616 Merge pull request #901 from Hixie/layout-callback
Allow parents of RenderObjects that have layout callbacks to depend on those objects' sizes.
2015-08-27 15:32:02 -07:00
Ian Fischer
ccd4add7c4 Merge pull request #903 from iansf/fix_dumb_mistake
Fix infinite loop
2015-08-27 15:31:04 -07:00
Adam Barth
24d1e09b0d Add test for PointerRouter 2015-08-27 15:29:31 -07:00
Ian Fischer
ec503ea9b8 Fix infinite loop in sky_tool listen if you didn’t specify —local-build 2015-08-27 15:29:26 -07:00
Hixie
a6e6b93b14 Allow parents of RenderObjects that have layout callbacks to depend on those objects' sizes.
Previously, if you used a layout callback, you could not have a parent
that did parentUsesSize, or if you did, you had to be marked
sizedByParent. With this patch, we allow the parent to depend on your
layout, even if you modify your child list during your layout using a
layout callback, by checking that the parent is still actively being
laid out in this scenario.
2015-08-27 15:26:57 -07:00
Adam Barth
2994e47c48 Merge pull request #899 from abarth/pointer_router
Add PointerRouter
2015-08-27 15:25:51 -07:00
Ian Fischer
e30b436d1a Merge pull request #898 from iansf/require_ios_7
Only require iOS 7 for Fitness app
2015-08-27 15:08:27 -07:00
Adam Barth
45f2c58987 Add PointerRouter
This patch is the first step towards implementing gestures. The pointer router
allows the gesture detectors to hook in at the end of the pointer event
propagation chain.

Related to #145
2015-08-27 15:02:35 -07:00
Ian Fischer
b214e355f6 Only require iOS 7 for Fitness app. 2015-08-27 15:02:18 -07:00
Eric Seidel
b58f850e63 Add a Widget wrapper around Grid and test RenderGrid
@abarth
2015-08-27 14:52:19 -07:00
Eric Seidel
0d4b997008 Add a pageChanged callback to PageableList
Also includes changes to widget_tester sufficient to
test scrolling.

@abarth
2015-08-27 14:51:53 -07:00
Hixie
204c073615 Provide a fast path for MultiChildRenderObjectWrapper.syncRenderObject() when the children lists are identical.
This isn't so much for performance so much as because I don't want to
have to keep checking that the main syncChildren() function maintains
the invariant of not screwing up when the two lists are actually the
same list.
2015-08-27 14:50:58 -07:00
Ian Fischer
338ca571b2 Make sure that local build paths exist before doing things that expect them. 2015-08-27 13:46:15 -07:00
Adam Barth
f688c11ceb Merge pull request #890 from abarth/cancel_queued_callback
Scheduler should be able to cancel a queued callback
2015-08-27 11:06:26 -07:00
Ian Fischer
8fa319a3e7 Merge pull request #891 from iansf/reorder_listen
Start "sky_tool listen" with a refresh
2015-08-27 10:56:59 -07:00
Ian Fischer
fdaea8b79d Have “sky_tool listen” start with a refresh so that iOS devices don’t wait on a black screen for the first filesystem change. 2015-08-27 10:54:10 -07:00
Adam Barth
315577fc95 Scheduler should be able to cancel a queued callback
Previously, once a callback was in the execution queue, it couldn't be
canceled. Now we check whether the callback was canceled before executing it.
2015-08-27 10:51:01 -07:00
Ian Hickson
91a72d9fed Merge pull request #879 from Hixie/RenderBlockViewport
Abstract out syncChildren().
2015-08-27 10:44:45 -07:00
Adam Barth
e51525cfe8 Rev pub package 2015-08-27 10:29:47 -07:00
Viktor Lidholt
5f277dd4d2 Merge pull request #874 from vlidholt/master
Adds counting of coins in demo game
2015-08-27 10:23:24 -07:00
Alhaad Gokhale
82153a5163 Update version of mojo and mojo_services to 0.0.23 for sky dart. 2015-08-27 10:05:22 -07:00
Adam Barth
a29e2ebb18 Merge pull request #882 from abarth/image_logging
Add logging to help diagnose image loading failures
2015-08-26 19:45:08 -07:00
Adam Barth
d6e949fba3 Add logging to help diagnose image loading failures
For debugging #801
2015-08-26 17:17:35 -07:00
Hixie
e6f34f8666 Abstract out syncChildren().
The core of MultiChildRenderObjectWrapper.syncRenderObject() could
apply to any subclass that uses a flat child list, so this abstracts
it out into the superclass.

(Also, instead of requiring the callbacks of RenderBlockViewport to
constrain their results, we just constrain it for them. Makes things a
bit easier for users of that class.)
2015-08-26 16:56:25 -07:00
Adam Barth
07d96a2314 Rename layout_utils.dart to rendering_tester.dart
Also, rename build_utils.dart to widget_tester.dart. These files are now named
for their most commonly used classes.

Finally, add a .analysis_options to silence the (intentional) analyzer warnings
in append_child_test.dart.
2015-08-26 15:49:04 -07:00
Adam Barth
d8fdccc596 Merge pull request #875 from abarth/merge_pump_frame
Merge pumpPaintFrame and pumpFrame in WidgetTester
2015-08-26 15:46:28 -07:00
Adam Barth
c405631ccd Merge pumpPaintFrame and pumpFrame in WidgetTester
We can make all the test pass by removing more of the mocks and using the real
code.
2015-08-26 15:42:52 -07:00