683 Commits

Author SHA1 Message Date
Ian Hickson
ef7d467b5e Update README.md 2015-08-18 20:51:48 -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
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
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
Chinmay Garde
f19767de8d Fix crashes on iOS due to EXC_ARM_DA_ALIGN 2015-08-18 14:34:51 -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
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
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
Ian Hickson
909a437c48 Merge pull request #665 from Hixie/analyzer
Fix analyzer to not change the working directory.
2015-08-17 17:18:30 -07:00
Chinmay Garde
bee0c4b2aa Merge pull request #667 from chinmaygarde/master
Fix iOS build breaks due to recent dart roll
2015-08-17 17:12:36 -07:00
Viktor Lidholt
92baad7424 Adds bounce and elastic easing to animation curves 2015-08-17 17:07:30 -07:00
Chinmay Garde
c6d67998cc Revert "Temporarily roll back dart dependency to work around build errors"
This reverts commit 2042a0f0adbde9a16ccd9ff9a414e70bc7871386.
2015-08-17 17:01:27 -07:00
Hixie
3cc25bb255 Fix analyzer to not change the working directory.
I didn't understand what was going on before. Now I do. This is a better fix that making the path absolute.
2015-08-17 16:57:08 -07:00
Adam Barth
9f0d108667 Merge pull request #663 from abarth/fix_rotate
Don't corrupt drawing when rotating
2015-08-17 16:45:43 -07:00
Adam Barth
33994d06f7 Don't corrupt drawing when rotating
Previously there was a race condition when updating the size of the GLSurface.
Now we explicitly update the size of the surface to match what we expect.

Fixes #610
2015-08-17 16:45:20 -07:00
Ian Hickson
5459f80c74 Merge pull request #661 from Hixie/analyzer
Analyzer updates
2015-08-17 16:15:50 -07:00
Eric Seidel
7280dd75f8 Merge pull request #660 from eseidelGoogle/sounds_bundle
Teach Asteroids Sounds how to load from AssetBundle
2015-08-17 16:15:06 -07:00
Ian Hickson
91f7fd822e Merge pull request #646 from Hixie/animations
Trivial code changes for style and readability in animation/ directory.
2015-08-17 16:08:23 -07:00
Ian Hickson
81a335ed7f Merge pull request #641 from Hixie/dependencies
Update READMEs for painting/ and animation/ to be up to date with current dependencies.
2015-08-17 16:08:19 -07:00
Ian Hickson
6656d5122a Merge pull request #640 from Hixie/lerp-whitespace
Improve style in lerp.dart and box_painter.dart
2015-08-17 16:08:12 -07:00
Eric Seidel
7637d52cdf Teach Asteroids Sounds how to load from AssetBundle
@abarth
2015-08-17 16:07:08 -07:00
Hixie
108f3b6b75 Analyzer updates
- Remove shelldb analyze, since we want to remove shelldb.
- Make skyanalyzer pass the absolute path to dartanalyzer. I'm not
  sure why this is sometimes needed, but without it, I sometimes get
  file not found errors.
- Remove some of the patterns we were ignoring, since either the
  errors have been fixed or the analyzer has been fixed.

There's still hundreds of warnings in the mojo and sky packages (the
ones in the sky packages are all bogus, I believe).
2015-08-17 15:42:34 -07:00
Collin Jackson
bed53a5611 Move inheritedOfType from Component to Widget so that Switch can use it 2015-08-17 15:03:21 -07:00
Chinmay Garde
c5576df5c7 Merge pull request #657 from chinmaygarde/master
Fix armv7 build errors in sky/engine
2015-08-17 14:23:40 -07:00
Adam Barth
87ca9c16be Rename Widget.root to Widget.renderObject
The name `root` is confusing because this value isn't the root of anything.
It's just the associated `RenderObject` instance.
2015-08-17 14:15:26 -07:00
Chinmay Garde
f19071f5f9 Fix armv7 build errors in sky/engine 2015-08-17 14:12:41 -07:00
Adam Barth
c82d1c8316 Merge pull request #653 from abarth/drag_target
Add support for drag-and-drop
2015-08-17 14:06:35 -07:00
Adam Barth
91d9f9d263 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
Chinmay Garde
92487e2775 Merge pull request #655 from chinmaygarde/master
Roll back dart dependency to work around build errors
2015-08-17 13:54:48 -07:00
Chinmay Garde
2042a0f0ad Temporarily roll back dart dependency to work around build errors
Tracking issue https://github.com/domokit/sky_engine/issues/654
2015-08-17 13:51:13 -07:00
Chinmay Garde
f86f0ed5ad Merge pull request #652 from chinmaygarde/master
Avoid disabling extra clang plugins on iOS
2015-08-17 13:40:07 -07:00
Adam Barth
6aa111e857 Merge pull request #650 from Hixie/theme
Trivial documentation for files in theme/.
2015-08-17 13:30:36 -07:00
Adam Barth
a03b87ded8 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
Adam Barth
cf97059b99 Merge pull request #636 from devoncarew/material_design_readme
update the readme for the material design package
2015-08-17 13:29:18 -07:00
Chinmay Garde
e7226be712 Avoid disabling extra clang plugins on iOS 2015-08-17 13:17:26 -07:00
Eric Seidel
42f60c2b18 Remove more dead code from roll_apk_version
Also fixed the url in roll_pub_versions CHANGELOG.md message.

@abarth
2015-08-17 13:16:13 -07:00
Hixie
671f550145 Add a trivial README for the mojo/ directory in the SDK. 2015-08-17 12:55:53 -07:00
Hixie
ba5e27eff1 Trivial documentation for files in theme/. 2015-08-17 12:49:06 -07:00
Eric Seidel
a71cded95c Split roll_versions.py into apk vs. pub 2015-08-17 12:43:16 -07:00
Hixie
08282362dc Trivial code changes for style in animation/ directory. 2015-08-17 12:35:02 -07:00
Hixie
63e80a6d0c Update READMEs for painting/ and animation/ to be up to date with current dependencies. 2015-08-17 10:53:06 -07:00
Hixie
9e8074528e Tweak box_painter.dart to match style better. 2015-08-17 10:52:05 -07:00
Hixie
450bb11464 Fix spaces in lerp.dart to match style better. 2015-08-17 10:24:58 -07:00
Devon Carew
dc2ae4b96c update the readme for the material design package 2015-08-16 14:36:34 -07:00
Adam Barth
788e4731fe Fix Android build 2015-08-15 21:58:51 -07:00
Adam Barth
f7053c6bdf Make it easier to run SkyShell from the command line on Mac
Now you can use --snapshot to load snapshots from the command line and have
them appear visually on Mac. Also, remove code duplication with Linux by
factoring common testing code into //sky/shell/testing.
2015-08-15 12:45:08 -07:00