2592 Commits

Author SHA1 Message Date
Adam Barth
b07203a887 Merge pull request #1749 from abarth/viewport_scroll_anchor
Teach ScrollableList about scroll anchors
2016-02-10 09:47:41 -08:00
Adam Barth
d6ae53fec4 Teach ScrollableList about scroll anchors 2016-02-10 09:25:49 -08:00
Hixie
4d5e40675b Tapping through drag targets.
Factor out the HitTestBehavior logic so that RenderMetaData can use it.

Use that in DragTarget.
2016-02-09 17:03:46 -08:00
Adam Barth
efd5aea004 Merge pull request #1736 from abarth/scroll_anchor3
Add scroll anchor for Block
2016-02-09 15:23:37 -08:00
Adam Barth
f0276d09e4 Add scroll anchor for Block
This patch teaches block how to anchor its scrolling to the end rather than the
start.

Fixes #136
2016-02-09 15:17:39 -08:00
Hixie
c56d378868 Draggable: childWhenDragging, maxSimultaneousDrags 2016-02-09 14:47:53 -08:00
Devon Carew
1616f2a189 Merge pull request #1729 from devoncarew/rename_extensions
rename the service protocol extensions
2016-02-09 13:29:29 -08:00
Devon Carew
284db8cc76 rename the service protocol extensions 2016-02-09 11:53:52 -08:00
Hans Muller
b96939a67b removed kStatusBarHeight constant 2016-02-09 11:51:38 -08:00
Adam Barth
7458ed226a Merge pull request #1710 from abarth/scroll_anchor
Preliminaries for scroll anchoring
2016-02-09 10:37:43 -08:00
Adam Barth
3c8cbef973 Rationalize RenderViewport and RenderVirtualViewport
These classes now share more code and have feature parity.
2016-02-09 10:30:52 -08:00
Hans Muller
f1cc388f3f Merge pull request #1703 from HansMuller/button_demo
Gallery Demos: button, dialog, snack bar

Added button, dialog, and snack bar gallery demos.

Split gallery main.dart into files in the lib/gallery subdirectory.

Enable TabBarSelectionState to deal with the PageStorage saved selected value no longer equalling any value.

Changed the color of Dialog text to match the theme's caption color.

Also: uppercased tab labels per #1617
2016-02-09 10:23:58 -08:00
Hans Muller
4264d5e749 Added button dialog and snackbar demos 2016-02-09 10:09:54 -08:00
Hixie
9cea6c50f5 Fix drawer in accessibility mode
The "leaf merge" feature was getting confused when we reset the
SemanticsNode. We now separately track whether the node itself is marked
as being merged vs whether we inherited that state, and we don't reset
the inherited state until you're reattached or reserialised. In the
latter case, we do a "just in time" clearing of the flag just like we
previously did a "just in time" setting of the flag, except now the flag
we're setting or clearing is the inherited flag not the actual flag.
2016-02-09 10:05:16 -08:00
Adam Barth
70d96ecb0b Improve unit conversions in Scrollable 2016-02-09 09:50:35 -08:00
Adam Barth
67145aabe9 Provide a better error for setState on a defunct State
Fixes #1695
2016-02-08 19:28:44 -08:00
Adam Barth
2cb534dc11 Merge pull request #1584 from abarth/populate_view_host
Actually populate the view host proxy
2016-02-08 18:15:44 -08:00
Ian Hickson
6f107d0a03 Merge pull request #1702 from Hixie/checked-mode
Add a "SLOW MODE" banner in checked mode
2016-02-08 17:22:27 -08:00
Hixie
bf30c1ab74 Add a "SLOW MODE" banner in checked mode 2016-02-08 17:12:06 -08:00
Adam Barth
d0240c4eae Remove ParentData#merge
There aren't any clients anymore.

Fixes #1684
2016-02-08 16:58:39 -08:00
Adam Barth
256af1433c Actually populate the view host proxy
Now that the engine lets us take the view host handle, we can actually
access the view host from Dart.
2016-02-08 15:14:09 -08:00
Adam Barth
a4048970f8 Merge pull request #1648 from abarth/polish_overlay
Overlay polish
2016-02-05 22:02:51 -08:00
Adam Barth
f3b1748ca6 Merge pull request #1646 from abarth/rm_color_transition
Remove ColorTransition
2016-02-05 22:02:42 -08:00
Adam Barth
26d239049b Overlay polish
Fixes #1607
2016-02-05 20:42:22 -08:00
Adam Barth
68f33d3012 Merge pull request #1642 from abarth/rm_viewport
Remove HomogeneousViewport
2016-02-05 20:30:46 -08:00
Adam Barth
d44e601a0a Remove ColorTransition
There are no clients anymore. We added it for the Drawer a while ago,
which is a use case that's now better covered by AnimatedModalBarrier,
complete with semantics.
2016-02-05 20:29:07 -08:00
Adam Barth
9251504a57 Add more dartdoc to widgets.dart
This patch includes documentation for transitions.dart and for
scrollable.dart.
2016-02-05 20:21:42 -08:00
Adam Barth
5b89669424 Remove HomogeneousViewport
The virtual viewport machinery now handles all of these use cases.
Previous clients of ScrollableWidgetList can use ScrollableLazyList
instead.
2016-02-05 20:12:18 -08:00
Hixie
1a0484cc7e Improve exceptions and asserts for rendering lib.
* Use actual exceptions rather than assertions containing code
  containing strings when trying to give messages to authors.
* Introduce RenderingError which is an AssertionError that takes a
  string argument, to support the above.
* Provide a BoxDimensions.hasBoundedWidth/hasBoundedHeight API.
* Document BoxDimensions.isNormalized.
* Provide more useful information when we assert isNormalized and find
  that it is false.
* When finding the size is infinite, crawl the tree to figure out which
  render box is likely responsible for the infinite constraints.
* Provide more information when size doesn't match the constraints.
* Provide more information when intrinsic dimension methods violate the
  constraints.
* Only spam a huge amount of information for the first exception from
  the rendering library. I've noticed a lot of people looking at the
  last exception printed rather than the first and that's very
  misleading -- after the rendering library hits an exception, all bets
  are off regarding what'll happen in the future. All kinds of asserts
  might fire.
* Improve docs around the debug methods and flags for the above.
* Make Block default to have no children. Previously, giving no children
  crashed with a confusing message about a null deref in an assert.
2016-02-05 13:55:40 -08:00
Adam Barth
79828ef209 Merge pull request #1631 from abarth/doc_widgets
Add more dartdoc to widgets.dart
2016-02-05 13:02:58 -08:00
Adam Barth
a663d2550f Add more dartdoc to widgets.dart
Making progress documenting the widget library.
2016-02-05 10:54:54 -08:00
Hans Muller
82e4309960 Support a TabLabel icon Widget builder. 2016-02-05 09:43:17 -08:00
Adam Barth
0e33151eed Merge pull request #1612 from abarth/doc_gestures
Add some more dartdoc to gestures.dart
2016-02-04 20:09:55 -08:00
Adam Barth
8319a6c282 Add some more dartdoc to gestures.dart 2016-02-04 20:01:35 -08:00
Adam Barth
29d1d2eee4 Add more dartdoc to animation.dart
After the refactoring of the animation library, we were missing some
dartdoc.
2016-02-04 19:51:09 -08:00
Devon Carew
68fa1a636d remove no longer needed code from the service protocol extensions 2016-02-04 14:56:49 -08:00
Yegor
aa1017e067 Merge pull request #1603 from yjbanov/no-navigator-message
better error message when Navigator is used with no NavigatorState in…
2016-02-04 10:30:19 -08:00
yjbanov
19a01171f2 better error message when Navigator is used with no NavigatorState in the context 2016-02-04 10:11:25 -08:00
Hans Muller
8741f33ebe Added a flexible appbar gallery demo 2016-02-04 09:42:23 -08:00
Adam Barth
ab5f012668 transformPoint should use Matrix4.perspectiveTransform
We want to normalize by w.

Fixes #1585
2016-02-03 19:56:09 -08:00
Adam Barth
488285f112 Merge pull request #1553 from abarth/child_view
Initial work to add Mozart child views
2016-02-03 14:21:40 -08:00
Kris Giesing
90da69c97c Fix formatting on AssetVendor's dart doc 2016-02-03 12:46:07 -08:00
Ian Hickson
517288c2dd Merge pull request #1532 from Hixie/semantics-2
Actually return a SemanticsServer service.
2016-02-03 09:50:06 -08:00
Adam Barth
f30398a4c4 Initial work to add Mozart child views
This patch sketches out the basic widgets for creating Mozart child
views. We're still missing some of the machinery, so we can't quite
create child views yet, but once we supply the ViewHost and teach the
compositor how to actually display the child scenes, we'll have
something that works.
2016-02-03 09:07:11 -08:00
Adam Barth
12507d1bdd RawKeyboardListener asserts if disposed without keyboard
We need to check whether we're attached to the keyboard before trying to
detach from the keyboard.
2016-02-02 20:02:23 -08:00
Hans Muller
6bc65e0373 Add support for the appbar behavior described in the "Flexible space with image" section of https://www.google.com/design/spec/patterns/scrolling-techniques.html#scrolling-techniques-scrolling. 2016-02-02 16:32:39 -08:00
Hixie
cca1cb2fa1 Actually return a SemanticsServer service. 2016-02-02 13:32:14 -08:00
Adam Barth
687ff57e24 Merge pull request #1528 from abarth/layer_offset
Viewport fails to clip its AssetImage child
2016-02-02 13:16:06 -08:00
Adam Barth
167fbced06 Viewport fails to clip its AssetImage child
We were getting confused about our layer tree offsets, which caused us
to set an incorrect cull rect for the recording inside a viewport.

This patch does away with layer tree offsets almost entirely. We now use
them only at repaint boundaries, which is where we want the layer tree
to be mutable.

Fixes #1460
2016-02-02 13:04:55 -08:00
krisgiesing
aef96b805c Merge pull request #1505 from krisgiesing/image_scaling
Add scale awareness to images
2016-02-02 12:21:14 -08:00