25905 Commits

Author SHA1 Message Date
Hans Muller
9e9d845b1f Adds ensureWidgetIsVisible() function to scrollable.dart
Set the scrollOffset of a widget's Scrollable ancestor so that the
widget is centered within the scrollable. A future CL will add
support for specifying exactly where the widget appears. The scroll
can be animated by specifying the animation: parameter.

Changed the duration Scrollable.scrollTo() parameter from a Duration
to an AnimationPerformance so that one can configure all aspects of
the animation. The caller may also listen to the animation to schedule
other work while it updates or when its status changes.
complete
2015-08-11 16:49:48 -07:00
Viktor Lidholt
87a50f412d Adds API docs to particle systems and removes redundant property 2015-08-11 16:25:58 -07:00
Eric Seidel
c9c4852aa6 Add missing icons to fitness/sky.yaml
This is just fallout from not having
https://github.com/domokit/sky_engine/issues/565

@abarth
2015-08-11 15:56:37 -07:00
Eric Seidel
3eaf50a94c Add Release notes for fitness 0.0.2
@abarth
2015-08-11 15:33:14 -07:00
Eric Seidel
f4e1d1425a Roll fitness version in preparation for release
@abarth
2015-08-11 15:30:46 -07:00
Eric Seidel
8417fb62da Merge pull request #571 from eseidelGoogle/splash
Attempt to make our splashes closer to other Android apps
2015-08-11 15:06:51 -07:00
Eric Seidel
cd5715bbf3 Attempt to make our splashes closer to other Android apps
And also Material Design of course.

@abarth
2015-08-11 14:56:36 -07:00
Adam Barth
5bbf0d8967 Merge pull request #570 from abarth/paint_once
Don't paint twice
2015-08-11 14:54:48 -07:00
Adam Barth
88eba9150f Don't paint twice
In refactoring the way we generate the SkPicture, I accidentially made us
generate the SkPicture twice. This CL causes us to generate it only once.
2015-08-11 14:38:49 -07:00
Viktor Lidholt
1ca858b94b 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
238ac8abdc Adds API docs to sprite Node and Node3D 2015-08-11 14:33:45 -07:00
Matt Perry
3d9f523179 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
5232475841 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
e053b35c3f Merge pull request #566 from eseidelGoogle/fitness
Make Fitness tiles nicer
2015-08-11 14:15:59 -07:00
Viktor Lidholt
db8bdbe619 Adds API docs to sprite ColorSequence and Layer 2015-08-11 14:13:57 -07:00
Viktor Lidholt
1e0ceaf1ac Merge pull request #561 from vlidholt/master
Adds documentation for sprite actions
2015-08-11 14:04:22 -07:00
Eric Seidel
b221278582 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
Adam Barth
eee90d0dd6 Merge pull request #560 from afandria/patch-1
Update README.md
2015-08-11 13:59:00 -07:00
Eric Seidel
441fe4d491 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
7d5dece1db Adds documentation for actions. 2015-08-11 12:19:07 -07:00
Alex Fandrianto
195fe22a31 Update README.md
Added missing :
2015-08-11 11:59:25 -07:00
Adam Barth
a96f59516c Rev pub package 2015-08-11 10:51:48 -07:00
Adam Barth
c3e48c53d9 Merge pull request #553 from abarth/immersive
Add support for immersive mode on Android
2015-08-11 10:37:41 -07:00
Adam Barth
e770b9da52 Merge pull request #552 from abarth/fix_image_layout
Images in Stocks drawer layout at crazy sizes
2015-08-11 10:15:45 -07:00
Adam Barth
c25beb8418 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
345f017640 Add support for immersive mode on Android
Fixes #512
2015-08-11 10:13:34 -07:00
Adam Barth
ae9f170243 Images in Stocks drawer layout at crazy sizes
Now that we get sky.Image callbacks synchronously, we were actually figuring in
the width and height of images the second time the drawer opened in the Stocks
app. That exposed a bug in our RenderImage layout code whereby it would ignore
the _width and _height properties when the image was non-null.
2015-08-11 09:52:22 -07:00
Adam Barth
375c24772e 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
7d3a6c4a78 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
2701b469cf 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
d2d9ae134d 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
63b9f17d97 Merge pull request #550 from eseidel/patch-2
Remove non-working Height setting
2015-08-10 22:31:42 -07:00
Eric Seidel
44b2c778c3 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
db24db4b20 Reduce precision shown for measurements
Fixes https://github.com/domokit/sky_engine/issues/548

@collinjackson
2015-08-10 22:14:00 -07:00
Devon Carew
1597359bef add test dep; make the travis build pass 2015-08-10 21:22:59 -07:00
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