1339 Commits

Author SHA1 Message Date
Hixie
768268ad3f Workaround to re-enable test
This is a workaround for:
   https://github.com/dart-lang/sdk/issues/25246
2015-12-15 13:38:45 -08:00
Hans Muller
0d983cd87a CustomMultiChildLayout and CustomOneChildLayout now use their delegate's shouldRelayout() method instead of a "token" to decide if layout is needed.
MultiChildLayoutDelegate and OnChildLayoutDelegate are now expected to be stateless, i.e. they'll typically be built each time their custom layout widget is built. If the identical layout delegate is provided to a new custom layout, layout will not happen.

Revised the bottom sheet implementation per the new custom layout classes. Removed a SizeObserver.

Fixes #899
2015-12-15 12:37:42 -08:00
Devon Carew
d9cab80c8a Merge pull request #939 from devoncarew/update_service_extensions
remove todos for service extension params
2015-12-15 11:57:47 -08:00
Kris Giesing
54cec3f13f Export dependent class from newton package 2015-12-15 11:09:33 -08:00
Devon Carew
4226b6008e remove todos for service extension params 2015-12-15 11:08:42 -08:00
Devon Carew
7d651af4f5 Merge pull request #911 from devoncarew/service_extensions
expose flutter debug functionality using VM service extensions
2015-12-15 10:53:50 -08:00
Devon Carew
cde14ab649 more checked mode guards; more types; fewer todos 2015-12-14 19:04:34 -08:00
Devon Carew
211aeabb87 review comments 2015-12-14 12:51:39 -08:00
Hans Muller
7ebb6412a9 Only set tolerance if simulation is non-null 2015-12-14 12:27:50 -08:00
Hans Muller
80c5e6a3c2 Support TabBarView swipe
Swiping left or right in a TabBarView now changes the selected tab in the way it's supposed to.

Currently swipe gestures that start while the selection change is underway are ignored. Will fix that in a separate change.
2015-12-14 11:23:12 -08:00
Devon Carew
ce6b330a80 expose flutter debug functionality using VM service extensions 2015-12-14 10:22:20 -08:00
Devon Carew
9ad9422007 Merge pull request #907 from devoncarew/mini_fab
support mini fabs
2015-12-14 09:52:21 -08:00
Devon Carew
a858222839 support mini fabs 2015-12-14 09:46:06 -08:00
Ian Hickson
d29970df8b Rename Pointerer to Gesturer. 2015-12-14 07:54:54 -08:00
Ian Hickson
ade93651ac Refactor bindings. 2015-12-13 23:34:41 -08:00
Ian Hickson
9487197502 Merge pull request #895 from Hixie/overlays
Avoid rebuilding entire app when an overlay needs updating
2015-12-11 21:55:11 -08:00
Ian Hickson
e78d6cbc6b Merge pull request #857 from Hixie/hashCodes
Use hashValues instead of hard-coded hashCode getters
2015-12-11 21:46:32 -08:00
Ian Hickson
76319df5df Avoid rebuilding entire app when an overlay needs updating 2015-12-11 21:35:10 -08:00
Ian Hickson
cb39108146 Minor fixes in comments and style. 2015-12-11 20:25:08 -08:00
Ian Hickson
d1364643db applyPaintTransform() improvements
Previously, applyPaintTransform() had to know how it was positioned in
its parent, even though that's really the parent's responsibility.

Now, applyPaintTransform() is given a child and applies the transform
that it would give the child during paint.

This makes it possible for applyPaintTransform() to work across
coordinate system boundaries (e.g. box to sector, or view to box --
previously, view to box only worked because we explicitly skipped that
step -- since view doesn't actually apply a transform, it doesn't
really matter).
2015-12-10 22:22:00 -08:00
Ian Hickson
5996d381a7 Check for cycles in our various tree structures. 2015-12-10 19:30:46 -08:00
Adam Barth
2a2784e822 Merge pull request #882 from abarth/image_docs
Add dartdoc for image classes
2015-12-10 18:52:03 -08:00
Adam Barth
40dda1ed4b Add dartdoc for image classes
- Adds dartdoc for all the `of` functions.
 - Renames Image to RawImage. This widget is rarely used and shouldn't take up
   such a nice global name.

Fixes #361
2015-12-10 18:34:56 -08:00
Florian Loitsch
e8367f5346 Merge pull request #881 from floitschG/remove_scheduler_from_animation
Remove reference to scheduler in animation.
2015-12-10 16:27:39 -08:00
Florian Loitsch
86dbf9431f Remove reference to scheduler in animation. 2015-12-10 15:38:39 -08:00
Adam Barth
87e6a5cc12 Add more dartdoc for basic widgets 2015-12-10 14:58:57 -08:00
Hans Muller
54f2d4cb94 Merge pull request #878 from HansMuller/pageable_list_tabs
TabBarView is-a PageableList, doesn't need itemExtent

Base TabBarView on PageableList so that itemExtent and its SizeObserver aren't needed.

TabBarView scrolling is still TBD.
2015-12-10 12:34:32 -08:00
Adam Barth
ffad464c96 Merge pull request #877 from abarth/better_asserts
Improve asserts when performLayout missing
2015-12-10 12:23:36 -08:00
Hans Muller
55f6593017 tabs scroll duration is 300ms 2015-12-10 12:20:29 -08:00
Hans Muller
9651db22df TabBarView is-a PageableList, doesn't need itemExtent 2015-12-10 12:20:29 -08:00
Adam Barth
2edb6807b8 Improve asserts when performLayout missing
Fixes #566
2015-12-10 12:15:07 -08:00
Ian Hickson
335f583564 Merge pull request #866 from Hixie/debugDoingPaint
Remove debugDoingPaint setter.
2015-12-10 11:17:09 -08:00
Adam Barth
f619c5cd4e Merge pull request #847 from abarth/enum_docs
Add more dartdoc
2015-12-10 11:04:11 -08:00
Hixie
3c4442cecb Remove debugDoingPaint setter.
debugDoingPaint is an internal flag and really shouldn't be globally settable.
2015-12-10 10:42:35 -08:00
Adam Barth
0885926e29 Add more dartdoc
These docs cover some undocumented enums and some of the basic layout widgets.
2015-12-10 10:15:57 -08:00
Hans Muller
fcfcfd56d2 Support an empty PageableList 2015-12-10 10:11:54 -08:00
Ian Hickson
d8a3ed3efc Use hashValues instead of hard-coded hashCode getters 2015-12-09 22:10:33 -08:00
Florian Loitsch
b5aba60147 Minor modifs. 2015-12-09 17:07:51 -08:00
Hans Muller
03e893927f Fix PageableList demo 2015-12-09 16:19:53 -08:00
krisgiesing
37f685b4ad Merge pull request #843 from krisgiesing/activity_service
Use explicit service name for activity service
2015-12-09 15:18:46 -08:00
Adam Barth
ac0aed5ae7 Merge pull request #846 from abarth/text_decoration
Update to the new TextDecoration API
2015-12-09 15:17:14 -08:00
Adam Barth
ab89d2e499 Update to the new TextDecoration API
Now with fewer lists.
2015-12-09 15:11:34 -08:00
Adam Barth
5f29d95018 Let clients of Checkbox, Radio, Slider, and Switch customize the activeColor
We might want to let folks customize the inactive color too, but customizing
the active color is a good place to start.
2015-12-09 14:49:32 -08:00
Hans Muller
c1d42a2fde Revised PageableList 2015-12-09 14:10:14 -08:00
Kris Giesing
70ea4b2cc7 Use explicit service name for activity service 2015-12-09 13:15:54 -08:00
Adam Barth
13f9e91f63 Cleanup the global scope a bit:
- Remove unused FocusChanged typedef.
- Remove unused centerOfAttentionHeroTag.
- Modernize static functions for interacting with Scrollable by moving them
  into the Scrollable class.
2015-12-09 11:12:12 -08:00
Adam Barth
5d6d258533 Update documentation based on comments in previous patch 2015-12-09 09:48:22 -08:00
Adam Barth
8be3a4fd7a Merge pull request #832 from abarth/widget_docs
Add some more dartdoc to widgets
2015-12-09 00:03:33 -08:00
Adam Barth
95fc98108f Improve tolerance for ending scroll animations
We had the units wrong on the tolerances. Previously we multiplied by the
device pixel ratio, which meant we got larger tolerances as we got more
resolution. Also, simplify logic in Newton for applying the tolerances.

Fixes #828
2015-12-08 23:54:43 -08:00
Adam Barth
e55858411f Add some more dartdoc to widgets 2015-12-08 23:42:34 -08:00