4285 Commits

Author SHA1 Message Date
Adam Barth
8dc607a976 Widgets that depend on Material should assert that
After this patch, if you try to use a widget that depends on being enclosed in
a material, you now get an assert and a debugPrint if you're not inside a
material.

Fixes #243
2015-12-08 13:38:19 -08:00
Adam Barth
a45b85c345 Remove unused EventRecorder 2015-12-08 13:34:07 -08:00
Collin Jackson
d05c564cef Fix hero transition when using dynamic routes 2015-12-08 13:08:16 -08:00
Hixie
7514ce12a2 Clean up pointer handling.
Previously we tried to work around some possible badness from the engine
side, but now we are more assertive about the engine needing to do the
right thing.
2015-12-08 12:45:19 -08:00
Jason Simmons
bf5ef790fa Merge pull request #807 from jason-simmons/sprite_pointer
Change flutter_sprites to use the current PointerEvent.position API
2015-12-08 10:53:29 -08:00
Jason Simmons
0c9333cc10 Change flutter_sprites to use the current PointerEvent.position API 2015-12-08 10:46:44 -08:00
Adam Barth
5eae4d5a44 Merge pull request #805 from abarth/double_pop
Double-tapping modal barrier pops twice
2015-12-08 09:40:23 -08:00
Adam Barth
e857bc6f11 Merge pull request #806 from abarth/use_route_state
_ModalScope has local copies of route state
2015-12-07 22:42:40 -08:00
Adam Barth
f202e7ab17 _ModalScope has local copies of route state
Now we just use the state from the Route.

Fixes #744
2015-12-07 21:50:06 -08:00
Ian Hickson
2a69a9810c Merge pull request #781 from Hixie/box_decoration
Make BoxDecoration replaceable.
2015-12-07 21:38:44 -08:00
Ian Hickson
2afa87dfcd Make BoxDecoration replaceable.
Factor out a reusable interface called Decoration from BoxDecoration.

Make all the consumers of BoxDecoration and the erstwhile BoxPainter
into consumers of Decoration.

Make a BoxPainter be something you get from a Decoration, rather than
something to which you pass a BoxDecoration.

Rename Shape to BoxShape now that it's documented specifically as
applying to boxes.

Move EdgeDims to its own file.

Move FractionalOffset up so that it's with the other helper classes in
its file rather than alone at the end.

Minor change to RenderClipOval's hit testing to avoid taking an
unnecessary square root.

Rename BoxDecorationPosition to DecorationPosition since
RenderDecoratedBox now takes any Decoration.

Implement hit testing for rounded rects.

Rename AnimatedBoxDecorationValue to AnimatedDecorationValue, and make
it support lerping across any Decoration (by deferring to the objects
involved).
2015-12-07 19:24:25 -08:00
Jason Simmons
0fe72b17f3 Merge pull request #788 from jason-simmons/platform_locale
Add a LocaleQuery widget that can be used to fetch locale-specific data
2015-12-07 17:44:20 -08:00
Jason Simmons
9693cd5537 Add a LocaleQuery widget that can be used to fetch locale-specific data
Users of MaterialApp can provide an onLocaleChanged handler that will be
called to asynchronously fetch locale-specific data.  MaterialApp will
then instantiate a LocaleQuery that supplies the locale data to its
descendants.
2015-12-07 17:38:50 -08:00
Adam Barth
c05871a7b4 Double-tapping modal barrier pops twice
Now we ignore the pointer after we start popping the route.

Fixes #686
2015-12-07 16:54:25 -08:00
Adam Barth
8dd8c203e2 Merge pull request #803 from abarth/dropdown
Material gallery crashes when you press the drop-down button
2015-12-07 16:20:11 -08:00
Adam Barth
4982c553b8 Material gallery crashes when you press the drop-down button
Now use use the route's getPosition function to position the drop-down menu.
Also, fix a number of other related bugs that blocked the dropdown button from
working correctly. The dropdown menu still has the following issues:

1) In the exit animation, the background of the menu disappears too quickly
   because of incorrect paint bounds computations in the layer tree.
2) The drop down menu isn't positioned correctly after the device rotates.
   We'll need to address this issue in a separate patch.

Fixes #630
2015-12-07 16:11:28 -08:00
Ian Hickson
aaef5045dc Merge pull request #802 from Hixie/yak1-routes-didChangeNext
didChangeNext()
2015-12-07 15:46:51 -08:00
Hixie
18d5c5e7ae didChangeNext()
Replace didPushNext() and didReplaceNext() with didChangeNext(), and
call it in more cases, so that a route can easily track the next route.

Use this to make TransitionRoute properly track its next route so that
you can do next-route-driven animations that work even with removes,
replaces, and other crazy manipulations of the navigator stack.
2015-12-07 15:39:56 -08:00
Ian Hickson
1e1761d181 Merge pull request #800 from Hixie/pointer-bugs
Fix pointer up/move/cancel listeners
2015-12-07 15:27:55 -08:00
Hixie
18beb4b45b Fix pointer up/move/cancel listeners
Fallout from the pointer refactor.
2015-12-07 15:20:21 -08:00
Ian Hickson
5f5245dd5e Merge pull request #798 from Hixie/popUntil
Navigator.popUntil
2015-12-07 15:02:36 -08:00
Ian Hickson
2305d019ac Merge pull request #795 from Hixie/overlayDebuggingFix
Make debugIsVisible work.
2015-12-07 14:58:25 -08:00
Hixie
cf3077ea98 Navigator.popUntil
This was already supported in the underlying classes but somehow not
exposed by Navigator itself.
2015-12-07 14:54:03 -08:00
Ian Hickson
6a7f50c493 Merge pull request #794 from Hixie/AlwaysDismissedPerformance
AlwaysDismissedPerformance
2015-12-07 14:50:53 -08:00
Ian Hickson
86fbdd7d3b Merge pull request #793 from Hixie/performance-debugging
Debugging aids for overlays, performances
2015-12-07 14:49:23 -08:00
Hixie
8b9ffca8d1 Make debugIsVisible work.
Turns out it was always returning true (visible).
2015-12-07 14:46:18 -08:00
Hixie
e92d393467 AlwaysDismissedPerformance
The same as AlwaysCompletePerformance but the exact opposite.
2015-12-07 14:44:53 -08:00
Hixie
7138a37293 Debugging aids for overlays, performances 2015-12-07 14:42:42 -08:00
Eric Seidel
f0ce2de9b5 Merge pull request #789 from eseidelGoogle/no_checked
Don't do performance testing in checked mode
2015-12-07 13:50:47 -08:00
Adam Barth
e80756d669 Merge pull request #748 from abarth/inital_performance
The intial route shouldn't run its entrance animation
2015-12-07 13:24:37 -08:00
Adam Barth
0f4ef5a79a Versioning 2015-12-07 13:23:47 -08:00
Eric Seidel
20deda1def Don't do performance testing in checked mode
This makes startup 1500ms instead of 1700ms.

@chinmaygarde @hixie
2015-12-07 12:54:21 -08:00
Adam Barth
ba936c0f0b The intial route shouldn't run its entrance animation
Instead, it should enter the world fully formed.
2015-12-07 11:11:03 -08:00
Adam Barth
73e62d386b Merge pull request #779 from abarth/basic_docs
Add some dartdoc to basic widgets
2015-12-07 10:57:00 -08:00
Ian Hickson
429e17c58f Merge pull request #786 from Hixie/pointers
Got the check the wrong way in the last patch.
2015-12-07 10:45:08 -08:00
Hixie
7243c5629c Got the check the wrong way in the last patch.
TBR @abarth
2015-12-07 10:44:19 -08:00
Ian Hickson
d6f61e44c3 Merge pull request #784 from Hixie/pointer-move-hack
Ignore hover events.
2015-12-07 10:29:42 -08:00
Adam Barth
069fc6dd8b Add some dartdoc to basic widgets
These docs are largely duplicated from the cooresponding rendering classes. I'm
not sure how we can avoid repeating ourselves.
2015-12-07 10:27:53 -08:00
Viktor Lidholt
1e683b2f61 Merge pull request #704 from vlidholt/master
Fixes issue with physics debug drawing in sprites
2015-12-07 10:22:25 -08:00
Hixie
aabae3af82 Ignore hover events. 2015-12-07 10:15:11 -08:00
Adam Barth
1d8bea0ab2 Merge pull request #783 from abarth/mimic_mark_needs_build
Expose markNeedsBuild on MimicOverlayEntry
2015-12-07 10:01:46 -08:00
Adam Barth
23776e7e7c Expose markNeedsBuild on MimicOverlayEntry
We expose this function on OverlayEntry to let you drive animations in the
overlay. The same use case applies to MimicOverlayEntry.
2015-12-07 09:50:50 -08:00
Ian Hickson
ef76140313 Merge pull request #782 from Hixie/yak2-pointer-events
Export the new pointer event classes.
2015-12-07 09:50:17 -08:00
Hixie
f3a65d0626 Export the new pointer event classes. 2015-12-07 09:12:28 -08:00
Adam Barth
36beda0c16 Merge pull request #778 from abarth/parent_data_fixes
Parent data fixes
2015-12-06 22:57:07 -08:00
Adam Barth
2f3baf14b3 Parent data fixes
Add some missing functionality to ParentData subclasses.

Fixes #474
2015-12-06 21:34:41 -08:00
Adam Barth
83ba426363 Fix typo 2015-12-05 14:41:50 -08:00
Adam Barth
d0a5536abb Merge pull request #768 from abarth/continuous_docs
Update Flutter API docs continuously
2015-12-05 14:27:50 -08:00
Adam Barth
6ca057e508 Update Flutter API docs continuously
The patch teaches Travis how to update our API docs continuously as we land
patches in master.
2015-12-05 14:23:18 -08:00
Adam Barth
5bb598ad00 Merge pull request #767 from abarth/clip_image_repeat
Repeated background images should be clipped to the container
2015-12-05 11:16:43 -08:00