3447 Commits

Author SHA1 Message Date
Collin Jackson
47dc2cee19 Add support for saving settings in fitness app 2015-08-19 12:12:33 -07:00
Adam Barth
01209fec6e Merge pull request #692 from abarth/position_image
Center images in their bounds when painting
2015-08-19 10:57:02 -07:00
Adam Barth
d55c8be91a Center images in their bounds when painting
Eventually we'll plumb positionX and positionY out so that developers can
control them.
2015-08-19 10:56:34 -07:00
Adam Barth
1a933a7825 Add a default BoxDecorationPosition
Fixes the tests because previously we wouldn't draw any box decorations.
2015-08-19 10:50:41 -07:00
Adam Barth
232d718d8e Merge pull request #690 from abarth/foreground_decoration
Add the ability to draw a foreground box decoration
2015-08-19 10:37:02 -07:00
Hans Muller
d2f7685826 Merge pull request #682 from HansMuller/dismissable-bug
Adds PageableList, other scrolling related changes and fixes

Adds PageableList, other scrolling related changes and fixes

- PageableList extends ScrollableList
One fixed width or height item is visible and centered at a
time. Fling and drag gestures scroll to the next/previous item.

- Scrollable.scrollTo(), Scrollable.scrollBy(), ensureWidgetIsVisible() API changed
The named animation parameter for these methods was replaced by
duration and curve. All of the methods now return a Future. The Future
completes when the scroll does.

This change eliminates the need for Scrollable to temporarily take ownership
of a ValueAnimation object (see #645).

- Using Future.then() instead of an AnimationPerformance status listener
In ensure_visible.dart _handleTap() uses ensureWidgetIsVisible() to
center the card roughly as before and then. When the implicit scroll
animation is complete, it changes the centered card's label font. The
change is made when the Future returned by ensureWidgetIsVisible()
completes.

- FixedHeightScrollable's itemHeight parameter is now itemExtent
If scrollDirection is ScrollDirection.vertical (the default) then itemExtent should
be the height of each item; otherwise it should be the width of each item.

Replaced _velocityForFlingGesture() in scrollable.dart with Scrollable._eventVelocity()
The original version clamped pixels/ms against pixels/sec constants. The new version
also deals with scrollDirection.

Plumbed scrollDirection though FixedHeightScrollable and ScrollableList

Both classes should now support horizontal scrolling.
2015-08-19 10:18:41 -07:00
Hans Muller
8e465b4dce Adds PageableList, other scrolling related changes and fixes
- PageableList extends ScrollableList
One fixed width or height item is visible and centered at a
time. Fling and drag gestures scroll to the next/previous item.

- Scrollable.scrollTo(), Scrollable.scrollBy(), ensureWidgetIsVisible() API changed
The named animation parameter for these methods was replaced by
duration and curve. All of the methods now return a Future. The Future
completes when the scroll does.

This change eliminates the need for Scrollable to temporarily take ownership
of a ValueAnimation object (see #645).

- Using Future.then() instead of an AnimationPerformance status listener
In ensure_visible.dart _handleTap() uses ensureWidgetIsVisible() to
center the card roughly as before and then. When the implicit scroll
animation is complete, it changes the centered card's label font. The
change is made when the Future returned by ensureWidgetIsVisible()
completes.

- FixedHeightScrollable's itemHeight parameter is now itemExtent
If scrollDirection is ScrollDirection.vertical (the default) then itemExtent should
be the height of each item; otherwise it should be the width of each item.

Replaced _velocityForFlingGesture() in scrollable.dart with Scrollable._eventVelocity()
The original version clamped pixels/ms against pixels/sec constants. The new version
also deals with scrollDirection.

- Plumbed scrollDirection though FixedHeightScrollable and ScrollableList

Both classes should now support horizontal scrolling.
2015-08-19 10:14:21 -07:00
Adam Barth
4d72533b9f Add the ability to draw a foreground box decoration
This feature lets you create effects similar to the "outline" property in CSS.
2015-08-19 09:36:40 -07:00
Ian Hickson
663d56cd28 Merge pull request #686 from domokit/Theme-Brightness
Pick a default theme brightness
2015-08-19 09:21:51 -07:00
Adam Barth
cf8ddc61b9 Merge pull request #687 from abarth/rev_playfair
Update playfair revision
2015-08-19 09:06:39 -07:00
Adam Barth
7e5b6c96c7 Update playfair revision
... and reattach fitness to the build. We detached fitness from the build
because it was seeing an old version of playfair that didn't work with the most
recent version of the Sky package.
2015-08-19 09:05:30 -07:00
Ian Hickson
5a4a674d6e Update README.md 2015-08-18 22:16:27 -07:00
Ian Hickson
a29d6e602c Update README.md 2015-08-18 22:12:59 -07:00
Ian Hickson
ed3e129027 Pick a default theme brightness
There doesn't seem to be any particular reason for us to not default the brightness to _something_.
2015-08-18 22:10:45 -07:00
Ian Hickson
37fd29950c Update README.md 2015-08-18 22:09:28 -07:00
Adam Barth
f186981924 Temporary build fix
Unhook fitness from the build to work around build break in playfair. We
updated the Sky package in an incompatible way, which means we need to roll in
a new playfair package to build fitness.
2015-08-18 21:50:29 -07:00
Adam Barth
2a3e51d51f Merge pull request #685 from abarth/rendering_dart
Add package:sky/rendering.dart
2015-08-18 21:43:25 -07:00
Adam Barth
f9c683bceb Add package:sky/rendering.dart
Similar to widgets.dart, rendering.dart exports the entire rendering layer.
Also, update the examples to use rendering.dart and widgets.dart. Also clean up
some exports so that the examples have more sensible imports.
2015-08-18 21:39:51 -07:00
Adam Barth
741b28026a Merge pull request #684 from abarth/explode_box
Split box.dart into many files
2015-08-18 21:04:58 -07:00
Adam Barth
037e1c7155 Split box.dart into many files
Sadly, box.dart has grown much longer than 1000 lines. This patch splits it up
into several files based on the class hierarchy. Fortunately, many of these
classes are loosely coupled to each other.
2015-08-18 20:55:32 -07:00
Ian Hickson
87f78c3307 Update README.md 2015-08-18 20:53:16 -07:00
Ian Hickson
ef7d467b5e Update README.md 2015-08-18 20:51:48 -07:00
Adam Barth
645eff64ce Merge pull request #683 from abarth/null_image
RenderImage should handle the case of a null image
2015-08-18 20:29:31 -07:00
Adam Barth
760ac40c68 RenderImage should handle the case of a null image
When given a null image, RenderImage should be as small as possible (isntead of
being NaNxNaN).

Also, plumb ImageFit and ImageRepeat through the various image widgets.
2015-08-18 20:05:52 -07:00
Ian Hickson
c7ae62507a Update README.md 2015-08-18 18:50:46 -07:00
Chinmay Garde
0d1a0747f5 Merge pull request #679 from chinmaygarde/master
Avoid warnings on iOS due to surface resize events not being handled
2015-08-18 17:12:38 -07:00
Adam Barth
af4c203213 Merge pull request #681 from abarth/border_padding
Borders on Containers shouldn't overlap the content
2015-08-18 16:12:08 -07:00
Adam Barth
6d38f01e38 Borders on Containers shouldn't overlap the content
This CL inflates the padding of Container to account for the borders so that
the borders are allocated space in the layout and don't draw behind the
Container's child.
2015-08-18 16:10:40 -07:00
Collin Jackson
2b5aeab472 Merge pull request #678 from collinjackson/gridlines
Request gridlines for fitness chart
2015-08-18 15:46:26 -07:00
Chinmay Garde
2ee8102343 Avoid warnings on iOS due to surface resize events not being handled 2015-08-18 15:33:02 -07:00
Adam Barth
08b5742859 Merge pull request #675 from abarth/solve_render_image
Improve RenderImage constraint solving
2015-08-18 15:23:41 -07:00
Adam Barth
253366cf3d Improve RenderImage constraint solving
We now fold the width and height properties into the constraints and try to
find a size for the image that perserves the image's intrinsict aspect ratio
while fitting within the given constraints.
2015-08-18 15:23:04 -07:00
Collin Jackson
3347adc89f Request gridlines for fitness chart 2015-08-18 15:15:49 -07:00
Chinmay Garde
c4e0bd408e Merge pull request #677 from chinmaygarde/master
Set default active arch on iOS to armv7
2015-08-18 14:39:48 -07:00
Chinmay Garde
9002a0d206 Set default active arch on iOS to armv7 2015-08-18 14:38:50 -07:00
Chinmay Garde
0d5c8ff10d Merge pull request #676 from chinmaygarde/master
Fix crashes on iOS due to EXC_ARM_DA_ALIGN
2015-08-18 14:38:30 -07:00
Chinmay Garde
f19767de8d Fix crashes on iOS due to EXC_ARM_DA_ALIGN 2015-08-18 14:34:51 -07:00
Adam Barth
a525f84bf0 Merge pull request #672 from abarth/render_image_fit
Apply ImageFit and ImageRepeat to RenderImage
2015-08-18 11:12:00 -07:00
Adam Barth
205f948edf Apply ImageFit and ImageRepeat to RenderImage
These properties should apply to foreground images as well as background
images. Also, rename these types from BackgroundFit and BackgroundRepeat
because they apply to things other than backgrounds.
2015-08-18 11:11:31 -07:00
Viktor Lidholt
21970c4af0 Merge pull request #671 from vlidholt/master
Fixes loading of assets in demo game
2015-08-18 10:34:50 -07:00
Viktor Lidholt
95014000a9 Fixes loading of assets in demo game 2015-08-18 10:33:34 -07:00
Adam Barth
9b55b981de Merge pull request #670 from abarth/expand_dimension
Container should expand in dimensions without constraints
2015-08-18 10:07:23 -07:00
Adam Barth
b6316f7eac Container should expand in dimensions without constraints
... as long as it doesn't have a child. If it has a child, it should size
according to that child. Essentially, if Container doesn't have a child, it
pretends like it has a child that expands to fill its constraints.
2015-08-18 10:06:49 -07:00
Viktor Lidholt
ee8506d32c Merge pull request #666 from vlidholt/master
Adds bounce and elastic easing to animation curves
2015-08-18 09:37:02 -07:00
Viktor Lidholt
2f333a37de Minor fixes to new animation curves 2015-08-18 09:34:07 -07:00
Ian Hickson
38776609d2 Merge pull request #669 from Hixie/layers
Port clipping to the new layer world.
2015-08-18 08:36:25 -07:00
Hixie
5ceb52a0e1 Port clipping to the new layer world.
- Add Canvas.getSaveCount()
- Make RenderClipRect call context.paintChildWithClip instead of doing the clipping itself
- Make ClipLayer take a Rect instead of a Size
- Make PaintingContext.canvas read-only
- Add PaintingContext.paintChildWithClip()
- Minor rearrangings of code and style tweaks
2015-08-18 08:34:42 -07:00
Eric Seidel
28ed6e686a Add release notes for SkyDemo.apk 0.0.23 demo_apk_23 2015-08-17 18:00:10 -07:00
Eric Seidel
f3814a8c60 Add release notes for Fitness 0.0.3
@collinjackson
fitness_apk_3
2015-08-17 17:51:50 -07:00
Eric Seidel
0c874b766c Merge pull request #668 from eseidelGoogle/music_asset
Make Asteroids.apk use background music from its bundle
2015-08-17 17:29:33 -07:00