489 Commits

Author SHA1 Message Date
Adam Barth
39b92bd2e9 Teach ScrollableBlock how to scroll horizontally
Now ScrollableBlock can combine a horizontally scrolling viewport with a
horizontal block.

Also rename ViewportScrollDirection to just ScrollDirection for less verbosity.
2015-08-05 18:10:03 -07:00
Adam Barth
e68b15f468 Merge pull request #476 from abarth/horizontal_block
Teach Block how to layout horizontally
2015-08-05 17:36:31 -07:00
Adam Barth
96395594d5 Teach Block how to layout horizontally
We'll need this for horizontally scrolling lists.
2015-08-05 17:20:13 -07:00
Adam Barth
d01a46a8f9 Support horizontal scrolling in ScrollableViewport 2015-08-05 16:18:15 -07:00
Eric Seidel
db402670d7 Merge pull request #473 from eseidelGoogle/fitness
Add Fitness.apk with icon
2015-08-05 14:08:40 -07:00
Eric Seidel
881620fb2d Add Fitness.apk with icon
This is just one of many steps in preparation for turning
fitness into a play-store ready app.

@abarth @collinjackson
2015-08-05 13:45:43 -07:00
Hans Muller
ae950aaefe Prevent double-dismissing of Dismissables, center card_collection under-text 2015-08-05 13:40:28 -07:00
Eric Seidel
9b5ffa7785 Merge pull request #457 from eseidelGoogle/docs
Add a few bits of documentation to package:sky
2015-08-05 13:32:44 -07:00
Ian Fischer
bba0f0a6b7 Add a —poke flag to the sky_tool start command so that it is possible to
restart Sky apps on Android without having to restart SkyShell.
2015-08-05 10:27:47 -07:00
Adam Barth
e59f6d28bb Merge pull request #456 from abarth/radial_reaction
Add a basic radial reaction to the switch
2015-08-05 09:51:06 -07:00
Adam Barth
e553918ee2 Add a basic radial reaction to the switch
We still need to tune the various parameters, but this patch is a start.
2015-08-05 09:50:33 -07:00
Hans Muller
32558f70ff Merge pull request #460 from HansMuller/fitness-demo-dialog
workaround for Fitness demo dialog cancel bug
2015-08-05 09:01:10 -07:00
Viktor Lidholt
53f559bd5f Merge pull request #461 from vlidholt/master
Adds cull rect to sprite performance test
2015-08-05 08:53:49 -07:00
Viktor Lidholt
1f1d1f5405 Adds cull rect to sprite performance test 2015-08-05 08:52:45 -07:00
Hans Muller
88621f7cff workaround for Fitness demo dialog cancel bug 2015-08-05 08:50:08 -07:00
Eric Seidel
50251ab254 Add a few bits of documentation to package:sky
I can't really make further progress until at least:
https://github.com/dart-lang/dartdoc/issues/766
is resolved, ideally also:
https://github.com/dart-lang/dartdoc/issues/763

@abarth
2015-08-04 17:38:46 -07:00
Ian Fischer
8ccc957f4a A couple of pieces of polish for iOS.
- Make space for the iOS status bar.
 - Set the iOS status bar to use white text.
2015-08-04 16:45:26 -07:00
Ian Fischer
4735fe0a19 Make Sky apps use the full screen on iOS. 2015-08-04 16:09:56 -07:00
Viktor Lidholt
f89029d080 Merge pull request #449 from vlidholt/master
Initial version of game performance tests
2015-08-04 16:04:25 -07:00
Adam Barth
ad70779dc7 Merge pull request #451 from abarth/fix_hit_testing
Fix RenderViewport's hit testing
2015-08-04 16:03:49 -07:00
Hans Muller
2f759691b2 done 2015-08-04 15:58:33 -07:00
Adam Barth
414a76519a Fix RenderViewport's hit testing
We were subtracting the scrollOffset when we were supposed to add it.
2015-08-04 15:54:51 -07:00
Hans Muller
115e86ddaf complete 2015-08-04 15:31:56 -07:00
Viktor Lidholt
1dffe2a9b4 Initial version of game performance tests 2015-08-04 15:31:48 -07:00
Eric Seidel
815f0ef27f Merge pull request #448 from eseidelGoogle/skydoc
Fix skydoc to work again
2015-08-04 15:30:01 -07:00
Eric Seidel
89405c4c3b Fix skydoc to work again
@abarth
2015-08-04 15:27:26 -07:00
James Robinson
bed5a6514d Merge pull request #447 from jamesr/rm_css_matrix
Remove unused CSSMatrix files
2015-08-04 15:14:57 -07:00
Matt Perry
d3817ff49c When animating, use the same curve until it completes.
This ensures we don't run into discontinuities when reversing an
animation halfway through. I refactored AnimationValue to have knowledge
of the reverse curves and intervals.
2015-08-04 16:34:46 -04:00
James Robinson
d10384ac43 Remove unused CSSMatrix files 2015-08-04 13:06:39 -07:00
Adam Barth
e18c698625 Rename widgets/widget.dart to widgets/framework.dart
It was confusing to have both widget.dart and widgets.dart
2015-08-04 11:13:33 -07:00
Jim Beveridge
d195a46c17 Merge pull request #432 from jimbeveridge/sky_tool
Make sky_tool much more user-friendly.
2015-08-04 11:07:25 -07:00
Adam Barth
0b13398f98 Merge pull request #444 from abarth/pre_line
Switch the default whitespace mode to pre-line
2015-08-04 11:01:55 -07:00
Adam Barth
0694d40bd3 Switch the default whitespace mode to pre-line
This mode will preserve new lines, allow breaks, but collapse whitespace. That
means whitespace at the start of lines will be collapsed.
2015-08-04 11:00:02 -07:00
James Robinson
9593b80d69 Add RenderToggleable base and use in Switch and Checkbox
This refactors Checkbox to own a RenderObject similar to how Switch was
refactored in https://github.com/domokit/sky_engine/pull/376 and
extracts common functionality for toggleable renderers into a base
class.  Switch and Checkbox's render objects derive from this base
class to add their own custom painting and theming logic.
2015-08-04 10:45:30 -07:00
Jim Beveridge
6549dabbf9 Fixed adb version checking per code review 2015-08-04 10:42:19 -07:00
Jim Beveridge
d7ecd5a5b6 Make sky_tool much more user-friendly.
B=Fixes #187
2015-08-04 10:42:19 -07:00
Eric Seidel
fed00af7a2 Roll SkyDemo.apk version in preparation for release 2015-08-04 10:38:27 -07:00
Viktor Lidholt
9274ddc178 First pass on sprite 3D node (does not yet support perspective projections). 2015-08-04 10:29:58 -07:00
Viktor Lidholt
8f4b77fbe1 Fixes path in SerializePicture call 2015-08-04 10:21:19 -07:00
Viktor Lidholt
042bbdbae5 Optimizes texture drawing by removing a canvas.translate call 2015-08-04 10:16:06 -07:00
Viktor Lidholt
354b94596c Disables anti alias for sprite drawing 2015-08-04 10:14:49 -07:00
Adam Barth
c7f9c68a87 Enable GrLayerHoister optimizations in Skia
Turns out we weren't passing kComputeSaveLayerInfo_RecordFlag, which meant we
weren't computing the information necessary for the GrLayerHoister in Skia to
do its work.

This CL makes demo_launcher scrolling 3x faster on a Nexus 5.
2015-08-04 09:01:08 -07:00
James Robinson
76e69eb2e9 Merge pull request #436 from jamesr/event_disposition
Teach event system about disposition and make 'consumed' disposition …
2015-08-03 17:54:55 -07:00
James Robinson
8a361dde58 Teach event system about disposition and make 'consumed' disposition terminal
This introduces the notion of event disposition and allows event
targets (widgets and render objects) to consume events that should not
be processed further. This is needed by the Switch component in the
Drawer in the stocks example. The Switch is embedded in a DrawerItem.
The Switch handles the gesture tap event to toggle its state and should
handle pointer events to allow swiping and draw its own radial
reaction. The DrawerItem also handles gesture taps to allow toggling
the switch value when tapping anywhere on the drawer and to draw its
own ink splash. When tapping on the switch, both the switch's render
object and the DrawerItem's listener are in the event dispatch path.
The Switch needs to signal in some fashion that it consumed the event
so the DrawerItem does not also try to toggle the switch's state.
2015-08-03 17:31:30 -07:00
Viktor Lidholt
1b4f1a6d96 Refactors the sprite matrix handling to do most calculations in Dart, minimizes the number of calls down to Skia 2015-08-03 17:31:13 -07:00
Adam Barth
7a220802a1 Remove unused import to make analyzer happy 2015-08-03 16:42:21 -07:00
Viktor Lidholt
f1cc0efdc1 Merge pull request #437 from vlidholt/master
Refactors matrix handling in sprites
2015-08-03 16:10:20 -07:00
Viktor Lidholt
0aea22f7dc Refactors matrix handling in sprites 2015-08-03 16:04:27 -07:00
Adam Barth
54f29d86d2 Rev Sky package 2015-08-03 15:57:21 -07:00
Adam Barth
8f76a9ec85 Fix build
This file was deleted.
2015-08-03 15:52:07 -07:00