25905 Commits

Author SHA1 Message Date
Adam Barth
8bb1bb9e6c Merge pull request #451 from abarth/fix_hit_testing
Fix RenderViewport's hit testing
2015-08-04 16:03:49 -07:00
Adam Barth
325bfcc739 Fix RenderViewport's hit testing
We were subtracting the scrollOffset when we were supposed to add it.
2015-08-04 15:54:51 -07:00
Hans Muller
bce1660988 complete 2015-08-04 15:31:56 -07:00
Viktor Lidholt
9b29b5fa8d Initial version of game performance tests 2015-08-04 15:31:48 -07:00
Matt Perry
78e18a5d18 When animating, use the same curve until it completes.
This ensures we don't run into discontinuities when reversing an
animation halfway through. I refactored AnimationValue to have knowledge
of the reverse curves and intervals.
2015-08-04 16:34:46 -04:00
Adam Barth
054ebbf3cf Rename widgets/widget.dart to widgets/framework.dart
It was confusing to have both widget.dart and widgets.dart
2015-08-04 11:13:33 -07:00
Jim Beveridge
2785db4991 Merge pull request #432 from jimbeveridge/sky_tool
Make sky_tool much more user-friendly.
2015-08-04 11:07:25 -07:00
James Robinson
56a4a8ad81 Add RenderToggleable base and use in Switch and Checkbox
This refactors Checkbox to own a RenderObject similar to how Switch was
refactored in https://github.com/domokit/sky_engine/pull/376 and
extracts common functionality for toggleable renderers into a base
class.  Switch and Checkbox's render objects derive from this base
class to add their own custom painting and theming logic.
2015-08-04 10:45:30 -07:00
Jim Beveridge
b4a597e58b Fixed adb version checking per code review 2015-08-04 10:42:19 -07:00
Jim Beveridge
dd59d6dca8 Make sky_tool much more user-friendly.
B=Fixes #187
2015-08-04 10:42:19 -07:00
Eric Seidel
2384ff70e9 Roll SkyDemo.apk version in preparation for release 2015-08-04 10:38:27 -07:00
Viktor Lidholt
edb1bf2341 First pass on sprite 3D node (does not yet support perspective projections). 2015-08-04 10:29:58 -07:00
Viktor Lidholt
e045452085 Optimizes texture drawing by removing a canvas.translate call 2015-08-04 10:16:06 -07:00
Viktor Lidholt
4ff5339a9a Disables anti alias for sprite drawing 2015-08-04 10:14:49 -07:00
James Robinson
267404d456 Merge pull request #436 from jamesr/event_disposition
Teach event system about disposition and make 'consumed' disposition …
2015-08-03 17:54:55 -07:00
James Robinson
53163f8b99 Teach event system about disposition and make 'consumed' disposition terminal
This introduces the notion of event disposition and allows event
targets (widgets and render objects) to consume events that should not
be processed further. This is needed by the Switch component in the
Drawer in the stocks example. The Switch is embedded in a DrawerItem.
The Switch handles the gesture tap event to toggle its state and should
handle pointer events to allow swiping and draw its own radial
reaction. The DrawerItem also handles gesture taps to allow toggling
the switch value when tapping anywhere on the drawer and to draw its
own ink splash. When tapping on the switch, both the switch's render
object and the DrawerItem's listener are in the event dispatch path.
The Switch needs to signal in some fashion that it consumed the event
so the DrawerItem does not also try to toggle the switch's state.
2015-08-03 17:31:30 -07:00
Viktor Lidholt
198b62425d Refactors the sprite matrix handling to do most calculations in Dart, minimizes the number of calls down to Skia 2015-08-03 17:31:13 -07:00
Adam Barth
2c1841afca Remove unused import to make analyzer happy 2015-08-03 16:42:21 -07:00
Viktor Lidholt
d2115a9168 Merge pull request #437 from vlidholt/master
Refactors matrix handling in sprites
2015-08-03 16:10:20 -07:00
Viktor Lidholt
ed81aa6bd4 Refactors matrix handling in sprites 2015-08-03 16:04:27 -07:00
Adam Barth
a192280f18 Rev Sky package 2015-08-03 15:57:21 -07:00
Adam Barth
906ff9ed1a Fix build
This file was deleted.
2015-08-03 15:52:07 -07:00
Matt Perry
2a83f8e67c Fix failing test card_collection.dart. 2015-08-03 18:14:51 -04:00
Adam Barth
8886cae26f Merge pull request #433 from abarth/widgets_dart
Add a widgets.dart uber library
2015-08-03 15:14:08 -07:00
Adam Barth
e7bd46b9e9 Add a widgets.dart uber library
Now you can import 'package:sky/widgets.dart' to get all the widgets.
2015-08-03 15:09:49 -07:00
Matt Perry
99c0edd6b0 Rename some animation classes.
* Intentions => Behaviors
* SlideIn => SlideTransition
* FadeIn => FadeTransition
* removed unused AnimatedContainer intentions
2015-08-03 17:30:34 -04:00
mpcomplete
dc9a4ccd97 Merge pull request #427 from mpcomplete/dismissable
Use transitions for Dismissable
2015-08-03 17:18:06 -04:00
Adam Barth
c575802b19 Merge pull request #428 from abarth/stocks_visuals
Fix visual bugs in Stocks
2015-08-03 14:15:05 -07:00
Matt Perry
92268c92eb Use transitions for Dismissable.
Simplifies the code a bit.
2015-08-03 16:56:36 -04:00
Adam Barth
ad4c4272dd Add support for FontStyle.italics 2015-08-03 13:50:46 -07:00
Adam Barth
c47a118493 Fix visual bugs in Stocks
- Center the labels on the tabs
 - Make the drawer's mask visible
2015-08-03 12:43:25 -07:00
Adam Barth
4270d8970d Update Sky package deps 2015-08-03 11:12:09 -07:00
Adam Barth
15d16186a7 Rev pub packages 2015-08-03 10:54:54 -07:00
Adam Barth
98a2c9b063 ScrollableBlock should be able to overscroll
When a ScrollableBlock can scroll, we want to be able to drag into the
overscroll region. Previously we could fling into the overscroll region, but we
couldn't actually drag there.
2015-08-03 09:57:38 -07:00
Adam Barth
763b423fcc Remove unused imports to make the analyzer happy 2015-08-01 18:58:13 -07:00
Adam Barth
851e80547d Add documentation about layout models 2015-08-01 18:56:54 -07:00
Adam Barth
64c9b3ddc0 Add some documentation for the basic widgets 2015-08-01 16:35:37 -07:00
Adam Barth
4f5164b108 Update README.md 2015-08-01 10:29:06 -07:00
Adam Barth
777f0c35d4 Rev pub package 2015-07-31 20:32:27 -07:00
Adam Barth
a9e4336a7b Update shelf_static and enable directory listing 2015-07-31 20:27:50 -07:00
Adam Barth
53369b10ae Merge pull request #421 from abarth/rounded_border
Support borders with borderRadius
2015-07-31 16:03:55 -07:00
Matt Perry
ea541955ff Add transitions.dart for common animation transitions.
Use those in SnackBar, Drawer, navigator instead of AnimatedContainer's
intentions.
2015-07-31 19:03:11 -04:00
Adam Barth
14c0b18745 Support borders with borderRadius
Currently we support only borders with uniform color and width.
2015-07-31 16:03:09 -07:00
Adam Barth
fa58691dc5 Merge pull request #420 from abarth/fix_readme_links
Use absolute URLs in sky/packages/sky/README.md
2015-07-31 13:49:54 -07:00
Adam Barth
32d8a5ca40 Use absolute URLs in sky/packages/sky/README.md
When this README.md is published to pub.dartlang.org, the base URL is
pub.dartlang.org. We need to use absolute URLs in order to get back to GitHub.

Fixes #417
2015-07-31 13:33:04 -07:00
Adam Barth
c464b82fe4 Merge pull request #419 from abarth/fix_align_right
Fix TextAlign.right
2015-07-31 13:05:27 -07:00
Adam Barth
2b0e4784d3 Fix TextAlign.right
We were applying the style to the RenderInline but we actually needed to apply
it to the RenderParagraph. The lineHeight property had the same problem.
2015-07-31 12:57:53 -07:00
John McCutchan
cb9376cb47 Make sky package depend on new sky_engine and sky_services 2015-07-31 11:05:30 -07:00
John McCutchan
d9e9ece917 Bump versions of sky packages 2015-07-31 10:46:14 -07:00
Adam Barth
e9db2fcde9 Merge pull request #409 from abarth/stack_repaint
Stacked does not repaint when its position changes
2015-07-31 10:21:08 -07:00