443 Commits

Author SHA1 Message Date
Viktor Lidholt
84ea083293 Merge pull request #569 from vlidholt/master
Adds API docs to sprite Node and Node3D
2015-08-11 14:35:17 -07:00
Viktor Lidholt
cdc0755f19 Adds API docs to sprite Node and Node3D 2015-08-11 14:33:45 -07:00
Matt Perry
cea3418b68 Scaffold: animate the FloatingActionButton with the SnackBar.
This introduces the concept of an Anchor, which you can use to link
transitions together. I've used this in the Fitness and Stocks apps to
link the FAB and SnackBar to animate together by sharing the
SlideTransition.

I also fixed the Scaffold hit testing code to apply sub-widget
transforms, so it works with Transformed nodes.
2015-08-11 17:21:20 -04:00
Viktor Lidholt
3035e07620 Merge pull request #567 from vlidholt/master
Adds API docs to sprite ColorSequence and Layer
2015-08-11 14:17:43 -07:00
Eric Seidel
7d393d4124 Merge pull request #566 from eseidelGoogle/fitness
Make Fitness tiles nicer
2015-08-11 14:15:59 -07:00
Viktor Lidholt
5054ec3d06 Adds API docs to sprite ColorSequence and Layer 2015-08-11 14:13:57 -07:00
Viktor Lidholt
4b48c8cfbf Merge pull request #561 from vlidholt/master
Adds documentation for sprite actions
2015-08-11 14:04:22 -07:00
Eric Seidel
2c1be2f255 Make Fitness tiles nicer
Moved from Cards to Tiles and made the printing
of the dates nicer by using some code from a Dart SDK example:
https://github.com/dart-lang/sdk/blob/master/samples-dev/swarm/swarm_ui_lib/util/DateUtils.dart

I also built a UserData class to help keep saving/sorting
consistent as well as fixed the sort order to have most
recent at the top.

@abarth
2015-08-11 14:02:12 -07:00
Eric Seidel
e184530630 Fix crash when hitting "enter" key on keyboard during entry
Now it wont crash on save, but it still doesn't display
the error message in a snackbar and this also doesn't
wire up the enter/go key to actually do anything.

We'll need to implement performEditorAction on our
InputConnection implementation to catch this key and
pass it along to dart.

Our Input control needs to get more powerful to handle things
like this, including filtering of input.

The code was crashing by triggering a bug in the SnackBar
which didn't assert for actions, but crashed when they
were not null.

Partial fix for https://github.com/domokit/sky_engine/issues/543

@abarth
2015-08-11 12:27:54 -07:00
Viktor Lidholt
21e0996bf6 Adds documentation for actions. 2015-08-11 12:19:07 -07:00
Adam Barth
15556f73e6 Merge pull request #551 from abarth/rm_weak_paint
Remove weak handle from sky.Paint
2015-08-11 10:15:35 -07:00
Adam Barth
a1807a1b17 Remove weak handle from sky.Paint
This patch converts sky.Paint to be a pure Dart object, which means we don't
need to open a weak handle to sky.Paint. Avoiding the weak handle reduces the
amount of weak handle callbacks we need to process at the end of GC and
therefore reduces jank.
2015-08-11 09:37:20 -07:00
Viktor Lidholt
e2bc694adc Merge pull request #527 from vlidholt/master
Adds optional rect property to sprite layer class
2015-08-11 09:11:09 -07:00
Adam Barth
5bd6cbd76b Merge pull request #545 from abarth/image_resource
Use ImageResource instead of Future<sky.Image>
2015-08-11 08:35:49 -07:00
Hans Muller
48da2ee5ae The IgnorePointer class enables one to cut a widget subtree off from pointer events. This is useful when a sibling should not shield pointer events from overlapping siblings below it.
Added a ScrollListener listener to Scrollable. The ScrollListener runs each time the Scrollable's scrollOffset changes. This can be used to keep overlay widgets in sync with a Scrollable below them.

Removed the Scrollable ScrollClient API. It was no longer used and was clumsy to use as a ScrollListener.

Added global function findScrollableAncestor() to scrollable.dart.

Added examples/widgets/overlay_geometry.dart. The app's Scaffold is contained by a Stack. The Stack is used to display green overlay "Markers" at the corners of the most recently selected list item and where the corresponding tap occurred. The app uses widget.localToGlobal() to compute the global overlay positions of the markers. The ScrollListener is used to keep the markers' positions up to date.
2015-08-11 08:29:30 -07:00
Chinmay Garde
fd6f97b19c Merge pull request #550 from eseidel/patch-2
Remove non-working Height setting
2015-08-10 22:31:42 -07:00
Eric Seidel
132c70ec77 Remove non-working Height setting
Fixes https://github.com/domokit/sky_engine/issues/547

@collinjackson
2015-08-10 22:16:51 -07:00
Eric Seidel
d39a67cdf2 Reduce precision shown for measurements
Fixes https://github.com/domokit/sky_engine/issues/548

@collinjackson
2015-08-10 22:14:00 -07:00
Adam Barth
41c201e768 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
Adam Barth
873fca4e32 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
be7cc256cf 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
Eric Seidel
7a0e5f229f Merge pull request #538 from iansf/remaining_pubspecs
Remaining pubspecs
2015-08-10 17:16:14 -07:00
Ian Fischer
3d462e191b pubspec.yaml files for the smaller demos. 2015-08-10 17:13:17 -07:00
Ian Fischer
3deac04f05 Merge pull request #533 from iansf/hello_world_pubspec
Hello world pubspec
2015-08-10 15:48:01 -07:00
Ian Fischer
cf206cfe9f Hello world pubspec 2015-08-10 15:46:32 -07:00
Ian Fischer
20209a090f Merge pull request #532 from iansf/address_book_pubspec
Address book pubspec
2015-08-10 15:45:20 -07:00
Adam Barth
cf83d5340e Merge pull request #530 from abarth/move_scale
Simplify SkPicture
2015-08-10 15:45:00 -07:00
Ian Fischer
7742e3359f Address book pubspec 2015-08-10 15:40:48 -07:00
Adam Barth
69c435eacc 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
464e35f342 Pubspec for Asteroids 2015-08-10 15:07:46 -07:00
Ian Fischer
ad1a56ff01 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
6722df87e8 Move game/main.dart to game/lib/main.dart. 2015-08-10 15:05:54 -07:00
Viktor Lidholt
8ef8d8bef7 Adds optional rect property to sprite layer class 2015-08-10 14:43:34 -07:00
Eric Seidel
06b7ae8c06 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
d82eb3fd16 Merge pull request #521 from vlidholt/master
Adds new Layer class to sprites
2015-08-10 14:28:17 -07:00
Ian Fischer
2dccf62024 Merge pull request #523 from iansf/mine_digger_pubspec
Minedigger pubspec
2015-08-10 12:48:39 -07:00
Ian Fischer
2c0b40b326 Minedigger pubspec 2015-08-10 12:47:18 -07:00
Ian Fischer
4e4af5d8c7 Pubspec for Stocks example 2015-08-10 12:43:36 -07:00
Viktor Lidholt
05824f0937 Updates demo game with changes to Sprites and Nodes 2015-08-10 12:37:44 -07:00
Viktor Lidholt
2f8e54b4eb Adds new Layer class 2015-08-10 12:37:12 -07:00
Viktor Lidholt
d302abdc43 Refactors Sprite class to use SpritePaint mix-in for setting paint properties 2015-08-10 12:36:08 -07:00
Viktor Lidholt
c71c9dfc7c Improves particle performance by never having doubles as null (5% gain in performance test) 2015-08-10 10:05:35 -07:00
Ian Fischer
3c8291a828 Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00