Adam Barth
b356d14635
Introduce package:sky/animation.dart
...
Move the animation libraries into src/animation and change importers to use
package:sky/animation.dart. Also, move scheduler.dart into the animation
library so that the animation library can be self-contained.
2015-09-08 09:44:01 -07:00
Hixie
0a37e06b4d
Fix breakage caused by sync-across-removal patch.
...
This makes the sync code stop if it would have to rearrange the
RenderObjects. I'll make it handle the cross-RenderObject case, as well
as the insertion-sync case, in subsequent patches.
2015-09-08 09:28:08 -07:00
Adam Barth
318b69be10
Fold package:sky/editing/* into package:sky/widgets.dart
...
The editing directory just defined two widgets. We might as well fold them into
the main widgets library.
2015-09-07 10:07:41 -07:00
Adam Barth
7e1e9ef351
Add dartdoc for RenderBox
2015-09-06 12:36:47 -07:00
Adam Barth
958de183c4
Merge pull request #1073 from abarth/box_docs
...
Document and bring sanity to BoxConstraints
2015-09-05 12:51:46 -07:00
Adam Barth
95277953aa
Document and bring sanity to BoxConstraints
...
Turns out many of the functions on BoxConstraints weren't used or had callers
that could easily be updated to other functions. I've added dartdoc to all the
public functions as well as renamed some functions that had similar names but
did different things.
2015-09-05 11:33:02 -07:00
Adam Barth
d810b583f9
Merge pull request #1067 from devoncarew/gen_docs
...
working on generating docs as part of the build
2015-09-04 19:28:33 -07:00
Devon Carew
eb869d096e
working on generating docs as part of the build
...
revert PATH changes
fix typo
some dartdoc changes in files
2015-09-04 19:21:53 -07:00
Adam Barth
48f600f85d
Merge pull request #1071 from abarth/center_expand
...
Center and Align should expand by default
2015-09-04 16:21:07 -07:00
Adam Barth
5af85d9045
Center and Align should expand by default
...
This patch makes Center and Align expand by default, which is usually what you
want. It also adds a ShrinkWrap option to let you shrink wrap in one or both
directions if that's really what you want to do.
2015-09-04 16:11:58 -07:00
Hans Muller
18e512d3a2
Replace Scroll with Drag in names in GestureRecognizer et al
2015-09-04 16:02:30 -07:00
Hans Muller
e6d48ac5b9
Merge pull request #1066 from HansMuller/more-dismissable-unit-tests
...
Add Dismissable unit tests
Add coverage for the DismissDirection paramter.
2015-09-04 14:45:46 -07:00
Hans Muller
b02531a9c2
Add Dismissable unit tests
2015-09-04 14:31:03 -07:00
Adam Barth
5ce23e5ac3
Update links to READMEs
...
These needed to be updated because we moved the widgets directory into the src
directory to hide it from dartdoc.
2015-09-04 14:09:07 -07:00
Ian Hickson
931d5e7511
Merge pull request #1062 from Hixie/reposition
...
Handle Widget instances being moved as-is to different parts of the tree.
2015-09-04 13:41:55 -07:00
Chinmay Garde
6063ac8772
Merge pull request #1063 from chinmaygarde/master
...
Setup mac target for Fitness app
2015-09-04 13:34:14 -07:00
Chinmay Garde
ea4d52720a
Setup mac target for Fitness app
2015-09-04 13:29:47 -07:00
Viktor Lidholt
49adb447a2
Merge pull request #1059 from vlidholt/master
...
Improvements to demo game
2015-09-04 13:03:50 -07:00
Hixie
6cac226fa6
Handle Widget instances being moved as-is to different parts of the tree.
2015-09-04 12:31:38 -07:00
Adam Barth
4d84e1b732
Disallow negative padding and margins
...
They're just as crazy in this system as they are in the web.
2015-09-04 12:25:26 -07:00
Hans Muller
4e01c05469
Add Dismissable support for DismissDirection
...
```
enum DismissDirection {
vertical,
horizontal,
left,
right,
up,
down
}
```
To only enable dismissing to the right create the `Dismissable` with `direction: DismissDirection.right`. By default direction is `DismissDirection.horizontal` (left or right).
Updated the card_collection "Swipe Away" demo with a drawer that can be used to select one of the three X axis dismiss directions. Currently the MixedViewport class doesn't support horizontal scrolling, so the demo doesn't support the X axis dismiss directions.
2015-09-04 11:31:15 -07:00
Viktor Lidholt
ceef6321eb
Adds helpers to bosses at level 2 & 3 and above in demo game
2015-09-04 10:35:45 -07:00
Viktor Lidholt
bf179674ad
More precise removal of lasers when they go offscreen in demo game
2015-09-04 10:35:45 -07:00
Viktor Lidholt
876fb7b38b
Laser speed now accounts for scrolling speed in demo game
2015-09-04 10:35:45 -07:00
Viktor Lidholt
d1a5661195
Merge pull request #1050 from vlidholt/master
...
Demo game improvements
2015-09-04 10:33:56 -07:00
Adam Barth
7d11cfa481
Merge pull request #1056 from abarth/event_ordering
...
Events should bubble up the tree
2015-09-04 09:31:55 -07:00
Ian Fischer
3f2172432e
Merge pull request #1054 from iansf/start_error_code
...
Error out on start if nothing started.
2015-09-04 07:53:48 -07:00
Alex Fandrianto
38bc97b6e6
Address Pull Request feedback
...
(optional param default value + newlines)
2015-09-03 19:14:22 -07:00
Adam Barth
f5102d1137
Events should bubble up the tree
...
Previously we reversed the event path by mistake before dispatching events.
2015-09-03 18:20:38 -07:00
Alex Fandrianto
dde3dd9121
This makes it easier for apps to control whether an IgnorePointer
...
widget is actively ignoring or not by changing a boolean instead of
the tree structure. ignoring defaults to true.
2015-09-03 17:45:44 -07:00
Ian Fischer
bd125e2e33
Return 0 or 2 from start and install commands.
2015-09-03 17:20:55 -07:00
Adam Barth
bc169671c8
Merge pull request #1051 from abarth/default_hit_test_children
...
defaultHitTestChildren should return whether it hit something
2015-09-03 17:18:02 -07:00
Adam Barth
5ea4763025
defaultHitTestChildren should return whether it hit something
...
Some clients want to know whether they hit their children.
2015-09-03 16:12:25 -07:00
Viktor Lidholt
eb3f30ab1f
Refactors boss power bar to use new constraint in demo game
2015-09-03 15:36:26 -07:00
Viktor Lidholt
e749bea18c
Adds constraint for aligning with another node in sprites
2015-09-03 15:35:47 -07:00
Viktor Lidholt
dbda2725ff
Adds coins when a boss explodes in demo game
2015-09-03 14:55:14 -07:00
Hans Muller
ef02328649
Merge pull request #1045 from HansMuller/scroll-dismiss-corner-cases
...
Fix minor problems in _ScrollGestureRecognizer, Dismissable, lerpColor
Alternating scroll gestures would sometimes be ignored because _ScrollGestureRecognizer didn't always reset its _state when the pointer[s] went up.
A Dismissable dismiss triggered by a drag and then a fling could cause the next attempt to drag-dismiss to fail.
Fixed the definition of lerpColor().
2015-09-03 13:43:23 -07:00
Viktor Lidholt
8c958f97fe
Refactors code in demo game to make it simpler
2015-09-03 13:40:36 -07:00
Hans Muller
952e73583f
Fix minor problems in _ScrollGestureRecognizer, Dismissable
...
Alternating scroll gestures would sometimes be ignored because _ScrollGestureRecognizer didn't always reset its _state when the pointer[s] went up.
A Dismissable dismiss triggered by a drag and then a fling could cause the next attempt to drag-dimiss to fail.
Fixed the definition of lerpColor().
2015-09-03 13:40:35 -07:00
Viktor Lidholt
20809bc9a5
Merge pull request #1047 from vlidholt/master
...
Adds power bar and movements to boss fights in demo game
2015-09-03 13:14:11 -07:00
Viktor Lidholt
dfe80a53ae
Adds power bar and movements to boss fights in demo game
2015-09-03 12:58:24 -07:00
Adam Barth
d0ad775ef2
Remove lerp.dart
...
These functions are now in sky:dart.
2015-09-03 12:36:24 -07:00
Adam Barth
11ee06dd50
Rev pub package
2015-09-03 11:37:04 -07:00
Adam Barth
c2ee2db555
Merge pull request #1041 from abarth/overconstrainted_flex
...
RenderFlex should handle overconstrainted constraints
2015-09-03 11:27:12 -07:00
Adam Barth
671b2bfeb9
Merge pull request #1044 from abarth/disable_reparent_during_sync
...
Disable reparent during sync
2015-09-03 11:26:52 -07:00
Andrew Wilson
2b25c33b4a
Fix hairline border seen if border width is 0.0
2015-09-03 11:14:25 -07:00
Adam Barth
7d711b9ee0
Disable reparent during sync
...
This feature is causing a bug because the widget tree isn't correctly
synchronized with the render tree.
2015-09-03 10:59:26 -07:00
Adam Barth
2473346fce
RenderFlex should handle overconstrainted constraints
...
Rather than reading out the maxWidth, we should call constrainWidth to factor
in the minWidth, which might be bigger.
2015-09-03 10:35:40 -07:00
Ian Fischer
1245aa7929
Correctly handle logging when devices are disconnected or logging processes otherwise crash.
2015-09-03 10:30:57 -07:00
Ian Fischer
5177b7d193
Merge pull request #1038 from domokit/iansf-sky_tool-log-docs
...
Change documentation for how to log using sky_tool
2015-09-03 09:51:34 -07:00