12070 Commits

Author SHA1 Message Date
Adam Barth
9f228349e9 Use ImageResource instead of Future<sky.Image>
Using ImageResource solves two problems:

1) Listeners can be notified synchronously when the sky.Image is already
   available. This change removes flash of 0x0 layout when moving an
   already-cached image around in the render tree.

2) In the future, when we support animated images, we can notify listeners
   multiple times whenever a new image is available.
2015-08-10 20:43:32 -07:00
Devon Carew
85d2c01599 update the readme to convert newton ==> playfair 2015-08-10 19:16:19 -07:00
Adam Barth
15e1e264a9 Merge pull request #541 from eseidelGoogle/feed_icon
Fix typo in feed icon in drawer
2015-08-10 17:57:39 -07:00
Eric Seidel
e8ba6fb619 Fix typo in feed icon in drawer
Fixes https://github.com/domokit/sky_engine/issues/540

@abarth
2015-08-10 17:55:28 -07:00
Collin Jackson
114b195e66 depend on sky 2015-08-10 17:53:59 -07:00
Collin Jackson
44cb5f1ee7 Initial commit 2015-08-10 17:49:33 -07:00
Eric Seidel
83bff59a0a Rev the pubspec version 2015-08-10 17:41:40 -07:00
Eric Seidel
9b5bd5805b Add a dependency on sky_tools
This is needed to make pub run sky_tools:sky_server work.
Partial fix for https://github.com/domokit/sky_engine/issues/539
2015-08-10 17:29:38 -07:00
Devon Carew
ef163af495 fix a typo in the pubspec 2015-08-10 17:22:05 -07:00
Eric Seidel
0fb07c1646 Merge pull request #538 from iansf/remaining_pubspecs
Remaining pubspecs
2015-08-10 17:16:14 -07:00
Ian Fischer
6d19b7a425 pubspec.yaml files for the smaller demos. 2015-08-10 17:13:17 -07:00
Ian Fischer
582ffd60ae Merge pull request #533 from iansf/hello_world_pubspec
Hello world pubspec
2015-08-10 15:48:01 -07:00
Ian Fischer
8c9d2d71d3 Hello world pubspec 2015-08-10 15:46:32 -07:00
Ian Fischer
fa5beb7c0c Merge pull request #532 from iansf/address_book_pubspec
Address book pubspec
2015-08-10 15:45:20 -07:00
Adam Barth
c59f418fd6 Merge pull request #530 from abarth/move_scale
Simplify SkPicture
2015-08-10 15:45:00 -07:00
Ian Fischer
8a4821614f Address book pubspec 2015-08-10 15:40:48 -07:00
Adam Barth
e3d9ea67da Simplify SkPicture
This patch simplifies the SkPicture we generate for Skia. Instead of drawing
everything into a nested SkPicture, we now draw everything into the top-level
picture, which requires us to apply the device scale factor in Dart.
2015-08-10 15:12:13 -07:00
Ian Fischer
b2de6696a3 Pubspec for Asteroids 2015-08-10 15:07:46 -07:00
Ian Fischer
3a2fd489fa Merge pull request #528 from iansf/asteroids_move_main
Move main.dart to lib/main.dart for the game
2015-08-10 15:06:54 -07:00
Ian Fischer
1d661379c9 Move game/main.dart to game/lib/main.dart. 2015-08-10 15:05:54 -07:00
Viktor Lidholt
9b898cffac Adds optional rect property to sprite layer class 2015-08-10 14:43:34 -07:00
Eric Seidel
01255a6417 Make it possible to save/load fitness measurements
This required me wrapping the new Activity APIs
as well as adding the missing pubspec.yaml

@abarth
2015-08-10 14:29:22 -07:00
Viktor Lidholt
0a02ea4542 Merge pull request #521 from vlidholt/master
Adds new Layer class to sprites
2015-08-10 14:28:17 -07:00
mpcomplete
03403d082a Merge pull request #520 from mpcomplete/tabs.indicator
Fix tab indicator animation so it doesn't snap to the previous tab.
2015-08-10 16:57:03 -04:00
Adam Barth
dd51bd5326 Add the ability to color filter background images 2015-08-10 13:30:52 -07:00
Matt Perry
cf71fecf9d Fix tab indicator animation so it doesn't snap to the previous tab.
If you tap multiple tabs in a row, the tab animation used to snap to the
last selected tab when starting a new animation. Fix that.

Also use the BuilderTransition so we don't have to rebuild the tab bar
every frame.
2015-08-10 16:22:57 -04:00
Ian Fischer
338dc61883 Merge pull request #523 from iansf/mine_digger_pubspec
Minedigger pubspec
2015-08-10 12:48:39 -07:00
Ian Fischer
8075ee9fb0 Minedigger pubspec 2015-08-10 12:47:18 -07:00
Ian Fischer
d341971ec8 Pubspec for Stocks example 2015-08-10 12:43:36 -07:00
Viktor Lidholt
35bdbbfee0 Updates demo game with changes to Sprites and Nodes 2015-08-10 12:37:44 -07:00
Viktor Lidholt
7b4f41e36c Adds new Layer class 2015-08-10 12:37:12 -07:00
Viktor Lidholt
32359d4b62 Refactors Sprite class to use SpritePaint mix-in for setting paint properties 2015-08-10 12:36:08 -07:00
Adam Barth
3e85649cfd Merge pull request #519 from abarth/optimize_clips
Optimize circular clips slightly
2015-08-10 12:10:44 -07:00
Adam Barth
ec0bccfb5d Optimize circular clips slightly
This patch avoids creating weak references on every paint call by caching the
Path object between paints.
2015-08-10 11:18:44 -07:00
Matt Perry
de7d8efc47 Get rid of the Direction parameter for animation Forces.
Just infer it from the sign of the velocity. That's what odeon does.
2015-08-10 13:24:52 -04:00
Viktor Lidholt
e4b8d8a84a Improves particle performance by never having doubles as null (5% gain in performance test) 2015-08-10 10:05:35 -07:00
Devon Carew
1a80827dc8 bump the pubspec version 2015-08-09 23:54:15 -07:00
Devon Carew
a03deafac8 update the sky_tools template and readme 2015-08-09 23:50:16 -07:00
Devon Carew
52f78d4fe4 run tests on the bot 2015-08-08 04:09:10 -07:00
Devon Carew
fd21db9436 add a changelog 2015-08-08 04:05:32 -07:00
Ian Fischer
8e11dcb5a7 Merge pull request #510 from iansf/move_examples
Move examples to the root
2015-08-07 18:32:18 -07:00
Adam Barth
2b22c12128 Merge pull request #514 from apwilson/image_assert
Fix asserts related to image drawing.
2015-08-07 18:21:05 -07:00
Adam Barth
bcd0d8fe9b Remove the flicker from MimicOverlay
There were two problems:

1) When starting the mimic, we put up a bad frame because although we set the
   `begin` value of the animation, we were building using the current `value`,
   which hadn't been updated.

2) When stoping the mimic, we'd dirty a component during didUnmount, which
   wouldn't get cleaned until the next frame. Now we're sure to clean all the
   components before leaving flushBuild.
2015-08-07 17:06:41 -07:00
Ian Fischer
d44ed7dfc3 Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00
Andrew Wilson
440a63a5bb Fix assert's related to image drawing. 2015-08-07 17:00:56 -07:00
Devon Carew
987ce972d6 use mustache4dart 2015-08-07 16:42:10 -07:00
Adam Barth
66e64023d8 Rev sky packages 2015-08-07 15:29:00 -07:00
Adam Barth
68565eb317 Use localToGlobal and globalToLocal in MimicOverlay
Also, make RenderStack support negative positions with clipping so that we can
expand objects that are partially offscreen.
2015-08-07 14:47:06 -07:00
Ian Fischer
19fa9ae2d6 Merge pull request #506 from iansf/demo_launcher_pubspec
First example pubspec
2015-08-07 14:28:53 -07:00
Ian Fischer
7d3065679f Rename build_path to build-path. 2015-08-07 14:27:23 -07:00