- 02 Oct, 2015 1 commit
-
-
Hixie authored
You can now set an offset that will be used for the hit testing for drops. (It doesn't move the feedback by default; use a Transform for that.) I also made the default feedback not be Opacity 0.5 always.
-
- 01 Oct, 2015 3 commits
-
-
Hixie authored
It's redundant with card_collection.dart, which does similar things but much better.
-
Hixie authored
This removes GlobalKey.currentElement in favour of GlobalKey.currentContext.
-
Adam Barth authored
-
- 30 Sep, 2015 3 commits
-
-
Hans Muller authored
-
Adam Barth authored
This argument isn't needed anymore now that State has a getter for context.
-
Hixie authored
Introduce a Draggable class that wraps all the logic of dragging something and dropping it on a DragTarget. Update examples/widgets/drag_and_drop.dart accordingly. Make the performance/transition part of routes optional.
-
- 29 Sep, 2015 1 commit
-
-
Hans Muller authored
Initial snap offset support for ScrollableWidgetList (and ScrollableList<T>) and ScrollableMixedWidgetList. If a ```toSnapOffset(scrollOffset)``` function is provided, fling Scrolls will coast to the returned value. If ```alignmentOffset``` is specified then fling scrolls conclude when toSnapOffset's value lines up with the Scrollable widget's origin + alignmentOffset. For example if the Scrollable widget's height was 200.0, and alignmentOffset:100.0 was specified, then fling scrolls would end with the value returned by toSnapOffset() lined up with the center of the Scrollable. This approach to Scrollable snapping assumes that the layout of whatever the Scrollable contains is known at the outset. This is often true however a ScrollableMixedWidgetList may not know its items' sizes until they've been reached by scrolling. This is a first cut at snapping support. Among the things that remain to be done: - Scrolling limits trump snapping. Snapping should probably trump scrolling limits. - Drag scrolls aren't snapped. This may be desirable so perhaps the feature should be controlled with a flag. - Specifying alignmentOffset as a percentage would probably be more convenient. - It would be nice if one could wrap items in a SnapOffset value like: ```new SnapOffset(0.5, child: myItem)``` to snap to the center of the item. Updated the CardCollection example: snapping and fixed size items can be turned on/off with Drawer checkboxes.
-
- 26 Sep, 2015 2 commits
-
-
Adam Barth authored
Now this example uses the App widget to drive the adventure game.
-
Adam Barth authored
-
- 25 Sep, 2015 2 commits
-
-
Hixie authored
-
Adam Barth authored
-
- 24 Sep, 2015 5 commits
-
-
Adam Barth authored
-
Hixie authored
ComponentState becomes State, for brevity. Instead of overriding its constructor, override initState(). This makes writing States much simpler.
-
Adam Barth authored
-
Adam Barth authored
-
Adam Barth authored
-
- 21 Sep, 2015 1 commit
-
-
Adam Barth authored
All the use cases for EventDisposition are now addressed by the gesture detection system.
-
- 18 Sep, 2015 2 commits
-
-
Hixie authored
This fixes #1103.
-
Adam Barth authored
Also, introduce Colors and Typography to hold the material colors and the typography declarations. Previously we expected clients of these libraries to import them into a namespace, but that doesn't play nice with re-exporting them from material.dart.
-
- 17 Sep, 2015 3 commits
-
-
Collin Jackson authored
-
Adam Barth authored
What's important about this code is that it's presenting services outside the VM, not the particular technology used to present the services.
-
Collin Jackson authored
-
- 16 Sep, 2015 2 commits
-
-
Collin Jackson authored
-
Adam Barth authored
This widget has no client.
-
- 14 Sep, 2015 1 commit
-
-
Adam Barth authored
Almost done adding dartdoc to the rendering layer.
-
- 11 Sep, 2015 1 commit
-
-
Adam Barth authored
-
- 08 Sep, 2015 1 commit
-
-
Adam Barth authored
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.
-
- 05 Sep, 2015 1 commit
-
-
Adam Barth authored
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.
-
- 04 Sep, 2015 2 commits
-
-
Hans Muller authored
-
Hans Muller authored
``` 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.
-
- 03 Sep, 2015 1 commit
-
-
Adam Barth authored
These functions are now in sky:dart.
-
- 02 Sep, 2015 1 commit
-
-
Hans Muller authored
-
- 31 Aug, 2015 1 commit
-
-
Hans Muller authored
-
- 28 Aug, 2015 2 commits
-
-
Hixie authored
Add a way of having keys based on numeric types or DateTimes by having a ValueKey<T> class. Remove the redundant ways of declaring things, except for leaving one shorthand -- you can say `new Key(s)` instead of `new ValueKey<String>(s)`.
-
Adam Barth authored
We're now using it at the widget layer for everything except scrolling and flinging.
-
- 26 Aug, 2015 2 commits
-
-
Adam Barth authored
Fixes #829
-
Hixie authored
This still leaves Flex and FlexDirection available. At some point once people have transitioned to Row/Column we should rename Flex to _Flex and stop reexporting FlexDirection from basic.dart.
-
- 25 Aug, 2015 1 commit
-
-
Collin Jackson authored
Also, add an example for the date picker
-
- 24 Aug, 2015 1 commit
-
-
Adam Barth authored
We now have Mimic tracking Mimicable through tree structure changes and while moving around the screen. Fixes #751 and #756
-