Eric Seidel
b58f850e63
Add a Widget wrapper around Grid and test RenderGrid
...
@abarth
2015-08-27 14:52:19 -07:00
Eric Seidel
0d4b997008
Add a pageChanged callback to PageableList
...
Also includes changes to widget_tester sufficient to
test scrolling.
@abarth
2015-08-27 14:51:53 -07:00
Ian Fischer
338ca571b2
Make sure that local build paths exist before doing things that expect them.
2015-08-27 13:46:15 -07:00
Adam Barth
f688c11ceb
Merge pull request #890 from abarth/cancel_queued_callback
...
Scheduler should be able to cancel a queued callback
2015-08-27 11:06:26 -07:00
Ian Fischer
8fa319a3e7
Merge pull request #891 from iansf/reorder_listen
...
Start "sky_tool listen" with a refresh
2015-08-27 10:56:59 -07:00
Ian Fischer
fdaea8b79d
Have “sky_tool listen” start with a refresh so that iOS devices don’t wait on a black screen for the first filesystem change.
2015-08-27 10:54:10 -07:00
Adam Barth
315577fc95
Scheduler should be able to cancel a queued callback
...
Previously, once a callback was in the execution queue, it couldn't be
canceled. Now we check whether the callback was canceled before executing it.
2015-08-27 10:51:01 -07:00
Ian Hickson
91a72d9fed
Merge pull request #879 from Hixie/RenderBlockViewport
...
Abstract out syncChildren().
2015-08-27 10:44:45 -07:00
Adam Barth
d6e949fba3
Add logging to help diagnose image loading failures
...
For debugging #801
2015-08-26 17:17:35 -07:00
Hixie
e6f34f8666
Abstract out syncChildren().
...
The core of MultiChildRenderObjectWrapper.syncRenderObject() could
apply to any subclass that uses a flat child list, so this abstracts
it out into the superclass.
(Also, instead of requiring the callbacks of RenderBlockViewport to
constrain their results, we just constrain it for them. Makes things a
bit easier for users of that class.)
2015-08-26 16:56:25 -07:00
Hans Muller
38d2302864
Merge pull request #850 from HansMuller/progress-bar-animation
...
Fix ProgressIndicators and add a regression test
Added some unit test infrastucture for checking layers.
2015-08-26 15:24:12 -07:00
Hans Muller
4e650a8928
Fix ProgressIndicators and add a regression test
...
Added some unit test infrasture for checking layers.
2015-08-26 15:22:24 -07:00
Ian Hickson
7a4bdc7f2a
Merge pull request #870 from Hixie/RenderBlockViewport
...
Generalise RenderBlockViewport so that it can be used by a Widget that knows its children's dimensions.
2015-08-26 15:16:43 -07:00
Hixie
b1468cb2ea
ShrinkWrapHeight widget
...
- add debugDescribeSettings to a few classes that were missing it
- fix some minor bugs in RenderShrinkWrapWidth and ShrinkWrapWidth
- introduce RenderShrinkWrapHeight and ShrinkWrapHeight
2015-08-26 15:07:53 -07:00
Hixie
04a8fe8e6b
Generalise RenderBlockViewport so that it can be used by a Widget that knows its children's dimensions.
2015-08-26 14:25:53 -07:00
Andrew Wilson
c6ae330320
Fix npe.
2015-08-26 14:14:44 -07:00
Eric Seidel
b122969624
Add support for RenderGrid
...
I'll write the Widget wrapper in the next CL, including adding
support for padding at the Widget layer.
@Hixie
2015-08-26 13:52:30 -07:00
Ian Hickson
bdc77e868c
Merge pull request #863 from Hixie/mixed-viewport-changes
...
Make RenderBlockViewport shrink-wrap its children in the main axis direction
2015-08-26 13:43:55 -07:00
Adam Barth
c476f8b3d5
Merge pull request #866 from abarth/test_date_picker
...
Add a basic test for DatePicker
2015-08-26 13:40:31 -07:00
Adam Barth
92e5a65d29
Add a basic test for DatePicker
...
Most of this work in this patch is building out the test framework to the point
where we can write this test.
2015-08-26 13:38:05 -07:00
Ian Hickson
f5fdc1cf1b
Merge pull request #852 from Hixie/sizing-docs
...
Update the documentation on sizing, make another assert point to it.
2015-08-26 13:25:17 -07:00
Hixie
301d0d3774
Make RenderBlockViewport shrink-wrap its children in the main axis direction.
2015-08-26 13:19:04 -07:00
Jim Beveridge
3c1672a899
Automatically update apk on device.
...
Fixes #454 .
2015-08-26 13:13:14 -07:00
Andrew Wilson
6215abec4d
Change generic value names to be more descriptive for assert tracing.
2015-08-26 12:22:38 -07:00
Collin Jackson
79e92a53a8
Add haptic feedback to date picker
2015-08-26 11:20:00 -07:00
Collin Jackson
4cd223a7e5
Cancel timer when un-mounting date picker widget
2015-08-26 11:19:43 -07:00
Collin Jackson
d547103f6a
Move ClipRRect logic from Card to Material (fixes rounded corners on top of date picker dialog)
2015-08-26 11:17:49 -07:00
Collin Jackson
a1bafaa317
Merge pull request #838 from collinjackson/improve_date_picker
...
Add date picker to widgets library and teach fitness app to use it
2015-08-26 10:28:27 -07:00
Hixie
a951bf685e
Update the documentation on sizing, make another assert point to it.
...
This hopefully explains things well enough that it fixes #846 , after a manner.
2015-08-26 10:10:56 -07:00
Hixie
ce28a7176e
Replace Flex to Row and Column in tests and examples.
...
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.
2015-08-26 09:05:14 -07:00
Collin Jackson
f164e560c3
Add date picker to widgets library and teach fitness app to use it
...
Also, add an example for the date picker
2015-08-25 16:41:11 -07:00
Collin Jackson
ee5f1146c4
Fix typo in syncRenderObject arguments
2015-08-25 16:18:21 -07:00
Hixie
556ebb93ff
Fix signature of Align.syncRenderObject()
2015-08-25 16:04:01 -07:00
Adam Barth
0cbd190b3d
Merge pull request #832 from Hixie/positioner
...
Introduce Align widget for aligning children.
2015-08-25 15:37:43 -07:00
Hixie
4a2fb5d3e8
Introduce Align widget for aligning children.
2015-08-25 15:35:20 -07:00
Adam Barth
15e8f741fb
Properly track mimics that move in the tree
...
We weren't telling the new mimicable that we wanted to start mimicing it.
2015-08-25 15:33:52 -07:00
Adam Barth
4923f0cd08
Merge pull request #813 from abarth/device_pixel_ratio
...
Don't freeze devicePixelRatio at startup
2015-08-25 14:55:01 -07:00
Adam Barth
d7ba514546
Fix global key error while using fitness app
...
We were making local copies of the listener maps, but we were actually
iterating the underlying sets. Now we make local copies of the sets.
Fixes #803
2015-08-25 14:45:18 -07:00
Adam Barth
1883d06aef
Fix build
...
I removed these functions by mistake in my previous patch.
2015-08-25 14:10:32 -07:00
Adam Barth
a733e91b7b
Don't freeze devicePixelRatio at startup
...
When we start, we might not have initialized the devicePixelRatio value. The
value will be initialized by the time we paint, so now we update the value
every time we paint.
2015-08-25 14:06:53 -07:00
Adam Barth
0e4ac8c12b
Use sky.SceneBuilder to upload Layer tree to C++
...
We still use SkPicture as our rasterization backend, but now we're uploading
our layer tree to C++. A future patch will push the layer tree deeper into the
system and we'll eventually switch backends.
2015-08-25 13:41:37 -07:00
Hans Muller
18b78cfafa
Enable initializing Scrollable scrollOffset
...
Added Scrollable named parameter initializeScrollOffset. If unspecified, then the initial value of scrollOffset is 0.0 as before.
2015-08-25 11:03:04 -07:00
Hans Muller
e1933af37e
Removed unneeded tabs.dart import, updated tests
2015-08-25 10:24:58 -07:00
Adam Barth
1fde4bb863
Merge pull request #796 from abarth/fix_tests
...
Don't divide by zero
2015-08-25 09:58:39 -07:00
Adam Barth
b2de3a705b
Don't divide by zero
...
If there aren't any items, there's no point in computing which items to show.
2015-08-25 09:48:21 -07:00
Hans Muller
aaeaed9be8
done
2015-08-25 09:41:28 -07:00
Ian Hickson
1867b58c40
Merge pull request #792 from Hixie/flex-part3
...
Add `Row` and `Column` widgets so you don't have to use Flex.
2015-08-25 09:22:40 -07:00
Adam Barth
c696c21aa5
Remove floating-point errors from ScrollableWidgetList
...
We now compute which items to show using integers instead of floating point,
avoiding rounding errors.
2015-08-25 09:20:20 -07:00
Hixie
3d37e78745
Add Row and Column widgets so you don't have to use Flex.
...
I updated everything in widgets/, but didn't update any examples.
2015-08-24 17:50:37 -07:00
Hixie
14f3f58cd9
Make Flex shrink-wrap when unconstrained.
2015-08-24 17:34:44 -07:00