161 Commits

Author SHA1 Message Date
Ian Fischer
f65dd37fef pubspec for the demo_launcher. 2015-08-07 14:19:01 -07:00
Viktor Lidholt
45a83d565d Merge pull request #501 from vlidholt/master
Adds perspective projection to Node3D in sprites
2015-08-07 12:56:04 -07:00
Viktor Lidholt
452c30d9fa Adds perspective projection to Node3D in sprites 2015-08-07 12:43:34 -07:00
Adam Barth
5aafa65f3e Add a MimicOverlay widget
This widget lets you mimic one of its children in an overlay. The overlay
starts out as the same size of the child and then grows to fill the overlay. In
the future, the mimic will start at the same visual position as the child.
2015-08-07 11:07:19 -07:00
Viktor Lidholt
9111592999 Merge pull request #497 from vlidholt/master
Adds skew property to sprite node
2015-08-07 10:07:53 -07:00
Viktor Lidholt
b636d54ebb Adds skew property to sprite node 2015-08-07 10:05:24 -07:00
Adam Barth
4a70cfed5f Rename various text-related classes
- Inline -> Pargraph. This class is actually a box, not an inline. It's really
   a wrapper for RenderParagraph, so Paragraph is the normal name.

 - InlineBase -> RenderInline. The name we used in C++ for the base class of
   all inlines was RenderInline, which removes the ugly "Base" suffix.

 - InlineText -> RenderText. Aligns this name with C++.

 - InlineStyle -> RenderStyled. Matches the foregoing pattern.
2015-08-06 22:26:02 -07:00
Viktor Lidholt
bd5b956641 Merge pull request #492 from vlidholt/master
Improvements to game performance tests
2015-08-06 17:26:08 -07:00
Viktor Lidholt
e691a63e14 Improvements to game performance tests (adds 2 new tests to check sprite curl performance) 2015-08-06 17:16:41 -07:00
Eric Seidel
a0c9ebc0b2 Teach the fitness app how to request a numeric keyboard
Unforutnately since Input won't show text if it doesn't start
with a letter, this actually makes the experiance slightly
worse, but this is definitely the right direction.

@abarth
2015-08-06 17:09:06 -07:00
Adam Barth
be75ee726d Merge pull request #485 from abarth/mimic
Add widgets for reparenting widgets
2015-08-06 16:23:58 -07:00
Adam Barth
9bed37b52c Add widgets for reparenting widgets
Wrap widgets you want to reparent in a Mimicable widget and assign the
Mimicable widget a global key. Then, given the same global key to a Mimic
widget to make it appear elsewhere in the view hierarchy.
2015-08-06 16:22:37 -07:00
Chinmay Garde
3fecfa75f4 Fix iOS device code signing issues 2015-08-06 16:14:11 -07:00
Viktor Lidholt
b5e3093f0f Increases number of frames in Dart game performance test 2015-08-06 13:46:31 -07:00
Viktor Lidholt
a0b0e139db Adds test for measuring computation speed in game like conditions 2015-08-06 13:24:29 -07:00
Matt Perry
a7b9656484 Change several onStatusChanged callbacks to onDismissed.
We only use them for the transition to dismissed.
2015-08-06 14:15:03 -04:00
Adam Barth
fd68741fb3 Add operator+ and operator- to EdgeDims
... and use them to improve the horizontal_scrolling example.
2015-08-06 09:41:22 -07:00
Adam Barth
870376dab1 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
Eric Seidel
5923d03cca Merge pull request #473 from eseidelGoogle/fitness
Add Fitness.apk with icon
2015-08-05 14:08:40 -07:00
Eric Seidel
46060fcf21 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
e4d9e320b0 Prevent double-dismissing of Dismissables, center card_collection under-text 2015-08-05 13:40:28 -07:00
Adam Barth
93d6f24f7e 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
07afda506a 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
7a4557c99d 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
8e45c37500 Merge pull request #461 from vlidholt/master
Adds cull rect to sprite performance test
2015-08-05 08:53:49 -07:00
Viktor Lidholt
f3007e112d Adds cull rect to sprite performance test 2015-08-05 08:52:45 -07:00
Hans Muller
d55425a3fe workaround for Fitness demo dialog cancel bug 2015-08-05 08:50:08 -07:00
Viktor Lidholt
16be262a26 Merge pull request #449 from vlidholt/master
Initial version of game performance tests
2015-08-04 16:04:25 -07:00
Viktor Lidholt
9b29b5fa8d Initial version of game performance tests 2015-08-04 15:31:48 -07:00
Adam Barth
054ebbf3cf 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
James Robinson
56a4a8ad81 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
Eric Seidel
2384ff70e9 Roll SkyDemo.apk version in preparation for release 2015-08-04 10:38:27 -07:00
Viktor Lidholt
edb1bf2341 First pass on sprite 3D node (does not yet support perspective projections). 2015-08-04 10:29:58 -07:00
Viktor Lidholt
e045452085 Optimizes texture drawing by removing a canvas.translate call 2015-08-04 10:16:06 -07:00
Viktor Lidholt
4ff5339a9a Disables anti alias for sprite drawing 2015-08-04 10:14:49 -07:00
James Robinson
267404d456 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
53163f8b99 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
198b62425d 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
Viktor Lidholt
d2115a9168 Merge pull request #437 from vlidholt/master
Refactors matrix handling in sprites
2015-08-03 16:10:20 -07:00
Viktor Lidholt
ed81aa6bd4 Refactors matrix handling in sprites 2015-08-03 16:04:27 -07:00
Adam Barth
e7bd46b9e9 Add a widgets.dart uber library
Now you can import 'package:sky/widgets.dart' to get all the widgets.
2015-08-03 15:09:49 -07:00
Adam Barth
14c0b18745 Support borders with borderRadius
Currently we support only borders with uniform color and width.
2015-07-31 16:03:09 -07:00
Viktor Lidholt
c9284dff77 Merge pull request #402 from vlidholt/master
Fixes anchor points for particles in particle systems
2015-07-30 16:10:50 -07:00
Viktor Lidholt
f39dcbb4cd Fixes anchor points for particles in particle systems 2015-07-30 16:04:57 -07:00
Chinmay Garde
1868222770 Allow loading SkyX files on Mac desktop 2015-07-30 15:07:35 -07:00
James Robinson
5ba11ed66e Merge pull request #376 from jamesr/render_switch
Make Switch a standalone class with a custom RenderObject
2015-07-30 15:00:13 -07:00
James Robinson
445f4ee8cd Make Switch a standalone class with a custom RenderObject
This changes Switch from being a subclass of the Toggleable widget to
being a standalone Component with a custom RenderObject. This is to
enable adding Switch-specific radial reaction animations in a
subsequent patch. The CustomPaint logic that Toggleable was using does
not provide a nice way for a class and its subclass to both participate
in deciding to repaint.
2015-07-30 14:53:28 -07:00
Adam Barth
1387bd7533 Merge pull request #394 from abarth/merge_scrollable
Combine all the scrollable classes into scrollable.dart
2015-07-30 14:51:25 -07:00
Adam Barth
a740dbd734 Combine all the scrollable classes into scrollable.dart
We ended up with a bunch of different scrollable widgets and it was confusing.
This CL moves them all into one library to make them easier to find.
2015-07-30 14:44:14 -07:00
Eric Seidel
6beeede1ca Merge pull request #390 from abarth/fix_analyzer
Fix Dart analyzer warnings
2015-07-30 14:28:57 -07:00