1129 Commits

Author SHA1 Message Date
Adam Barth
ac0ec3221b Add support for drag-and-drop
Widgets that want to receive drops should include a DropTarget in their build.
Currently there's no widget for initiating a drag. Components can use the
DragController directly. In the future, we'll probably want to add a Draggable
that knows how to do some of this work automatically.

Fixes #612
2015-08-17 14:06:19 -07:00
Adam Barth
fca0c3c929 Merge pull request #650 from Hixie/theme
Trivial documentation for files in theme/.
2015-08-17 13:30:36 -07:00
Adam Barth
d19d4ee37d Merge pull request #649 from Hixie/mojo-README
Add a trivial README for the mojo/ directory in the SDK.
2015-08-17 13:30:21 -07:00
Hixie
73c4f8adbf Add a trivial README for the mojo/ directory in the SDK. 2015-08-17 12:55:53 -07:00
Viktor Lidholt
f49a490dc0 Adds SoundManager class 2015-08-17 12:49:32 -07:00
Hixie
d867b8ab02 Trivial documentation for files in theme/. 2015-08-17 12:49:06 -07:00
Eric Seidel
f19fee31e2 Roll Fitness and SkyDemo in preparation for release
@abarth
2015-08-17 12:46:30 -07:00
Viktor Lidholt
23aabee8ae Merge pull request #638 from vlidholt/master
Adds a new ActionDelay class to sprites
2015-08-17 12:43:30 -07:00
Hixie
49b43e2e0f Trivial code changes for style in animation/ directory. 2015-08-17 12:35:02 -07:00
Hixie
067fbd5041 Update READMEs for painting/ and animation/ to be up to date with current dependencies. 2015-08-17 10:53:06 -07:00
Hixie
789064a433 Tweak box_painter.dart to match style better. 2015-08-17 10:52:05 -07:00
Hixie
a24c32fcf6 Fix spaces in lerp.dart to match style better. 2015-08-17 10:24:58 -07:00
Viktor Lidholt
d028875510 Adds a new ActionDelay class to sprites 2015-08-17 09:23:13 -07:00
Adam Barth
183ea1042e Merge pull request #625 from abarth/less_grey
Don't grey out Sky code in Atom
2015-08-14 15:40:35 -07:00
Adam Barth
a94d398847 Don't grey out Sky code in Atom
For some reason having |packages| in this .gitignore file is causing Atom to
grey out all the files in the Sky package. Moving the entry up to the root of
the git repo fixes the issue.
2015-08-14 15:39:09 -07:00
Chinmay Garde
6794429ec5 Merge pull request #624 from chinmaygarde/master
Add iOS sky_app target for the fitness app example
2015-08-14 15:34:48 -07:00
Chinmay Garde
99b68e3139 Add iOS sky_app target for the fitness app example 2015-08-14 15:07:20 -07:00
Hans Muller
1f7b9229cf Merge pull request #623 from HansMuller/dismissable-bug
Reset the Dimissable fade animation on slow flings
2015-08-14 14:18:31 -07:00
Adam Barth
1a8f4e36d1 Rev pub package 2015-08-14 14:14:46 -07:00
Hans Muller
2c5c4538fc Reset the Dimissable fade animation on slow flings 2015-08-14 14:14:44 -07:00
Collin Jackson
5183eb9b63 Merge pull request #621 from collinjackson/more_text_refactor
Refactor RenderParagraph to do more work at the painting layer
2015-08-14 14:03:12 -07:00
Collin Jackson
779f5743e5 Refactor of text rendering into painting layer 2015-08-14 13:30:56 -07:00
Adam Barth
6efbcdc975 Add haptic and aural feedback service
And use the service in mine_digger to notify the user when they flag a bomb.
2015-08-14 12:46:04 -07:00
Adam Barth
d291fcaecd Merge pull request #620 from abarth/compositing_update
Add a compositing update phase
2015-08-14 11:09:28 -07:00
Adam Barth
e17aa1b63a Add a compositing update phase
We need to compute whether a RenderObject has a composited descendant so that
we can decide whether to use canvas.saveLayer or to create a new composited
layer while walking down the tree during painting.

The compositing update walks the tree from the root only to places where the
tree's structure has been mutated. In the common case during an animation loop,
we won't need to visit any render object beyond the root.
2015-08-14 10:47:39 -07:00
Adam Barth
e0f14e3719 Add debug painting for layer borders
This patch makes it easier to debug layerization issues.
2015-08-14 10:46:53 -07:00
Adam Barth
86da2f9bf4 Separate the notions of offset and size in compositing
Separating these notions makes them easier to work with because offset is
relative to the parent layer whereas size is intrinsic to the layer itself.
This patch fixes the underpainting bugs when compositing the stocks example.
2015-08-14 09:49:38 -07:00
Adam Barth
53884a37de Generalize _cleanRelayoutSubtreeRootChildren into visitChildren
This generalization will let us implement other alogorithims that need to walk
the RenderObject tree.
2015-08-14 09:37:19 -07:00
mpcomplete
0c05c97e20 Merge pull request #597 from mpcomplete/value.animation
Add a ValueAnimation helper class for AnimationPerfomance.
2015-08-14 12:03:27 -04:00
Adam Barth
87df0e5b3c Fix analyzer warnings 2015-08-14 09:00:42 -07:00
Viktor Lidholt
d89e5e4d90 Merge pull request #607 from vlidholt/master
Updates to game sound API
2015-08-13 16:35:58 -07:00
Adam Barth
bcf18623b9 Merge pull request #608 from abarth/composite_frame
Add a compositing step to the lifecycle
2015-08-13 16:32:18 -07:00
Adam Barth
bf260f98e3 Add a compositing step to the lifecycle
Now we have the ability to draw multiple PictureLayers. We still squash all the
pictures together into a single SkPicture for simplicity. In the future, we'll
submit them to C++ separately and composite them on the GPU thread.
2015-08-13 16:31:45 -07:00
Hans Muller
681b366abe Merge pull request #606 from HansMuller/progress-indicator
Adds CicularProgressIndicator and LinearProgressIndicator

Setting a ProgressIndicator's value to null (the default) makes it an "indeterminate progress" or activity indicator.

The indeterminate animations for both kinds of progress bars are essentially the same and wrong vis the Material Design spec, http://www.google.com/design/spec/components/progress-activity.html. I'll improve conformity with the visual design in a future CL.
2015-08-13 16:17:27 -07:00
Hans Muller
babe380f0d Adds CicularProgressIndicator and LinearProgressIndicator
Setting a ProgressIndicator's value to null (the default) makes it an "indeterminate progress" or activity indicator.

The indeterminate animations for both kinds of progress bars are essentially the same and wrong vis the Material Design spec, http://www.google.com/design/spec/components/progress-activity.html. I'll improve conformity with the visual design in a future CL.
2015-08-13 16:15:21 -07:00
Adam Barth
4d68bc8754 Merge pull request #605 from abarth/long_press
Expose longpress and showpress in Listener
2015-08-13 16:04:17 -07:00
Viktor Lidholt
e17f6b7b06 Adds background music for demo game 2015-08-13 16:00:29 -07:00
Viktor Lidholt
4530e45710 Unifies interfaces for SoundTrackPlayer and SoundEffectPlayer 2015-08-13 16:00:29 -07:00
Viktor Lidholt
a750da5606 Adds a SoundTrackPlayer class 2015-08-13 16:00:29 -07:00
Viktor Lidholt
3d31273e65 Rename SoundCompleteCallback to SoundEffectStreamCallback 2015-08-13 16:00:29 -07:00
Viktor Lidholt
fa82f1a6e1 Refactors names of sound effect classes 2015-08-13 16:00:29 -07:00
Viktor Lidholt
6895312218 Removes the ability to jump to different positions in sound effects (this isn't supported on Android) 2015-08-13 16:00:29 -07:00
Adam Barth
3523a10ab4 Expose longpress and showpress in Listener 2015-08-13 15:48:07 -07:00
P.Y. Laligand
130119dff0 Fixed a typo in the widget tutorial. 2015-08-13 14:41:55 -07:00
Matt Perry
82d84c766f Add a ValueAnimation helper class for AnimationPerfomance.
Used for AnimationPerformance with a single AnimatedValue<T> variable.
2015-08-13 17:29:32 -04:00
Adam Barth
7cba729110 Switch painting over to using PictureLayer
Currently we have a single PictureLayer that everyone draws into. A future
patch will teach the system to use multiple PictureLayers.
2015-08-13 14:24:29 -07:00
Viktor Lidholt
4b462bab5d Adds sounds to demo game bundle 2015-08-13 12:57:07 -07:00
Viktor Lidholt
a011108640 Merge pull request #598 from vlidholt/master
Adds rough sound support for sprites
2015-08-13 12:51:34 -07:00
Adam Barth
602dbbee7e Merge pull request #600 from abarth/requires_compositing
Rename createsNewDisplayList to requiresCompositing
2015-08-13 12:50:43 -07:00
Adam Barth
be8454073a Rename createsNewDisplayList to requiresCompositing
This patch prepares for introducing the compositing system by repurposing the
relevant parts of the createsNewDisplayList system. This patch also removes the
no-longer-relevant parts of that system.
2015-08-13 12:43:39 -07:00