2745 Commits

Author SHA1 Message Date
Hans Muller
dc85f0bbff Ease tab swipe transitions (#5111) 2016-07-28 10:59:36 -07:00
Ian Hickson
8c8409d6e4 Remove unnecessary import. (#5110)
This slipped in with an earlier commit.
2016-07-28 09:39:49 -07:00
Ian Hickson
0a11c5b0fc Rationalise error handling at the network layer (#5100) 2016-07-28 09:22:55 -07:00
Ian Hickson
2b343a932f Some cleanup for hot reload (#5108)
- show the next error fully after a hot reload
- hide _AssertionError in stacks
- immediately rebuild after a reassemble, so that hit tests work
- catch errors when notifying global key listeners
2016-07-28 08:54:58 -07:00
Adam Barth
8219ab61ab Don't rebuild routes on the second animation frame (#5097)
Previously we would rebuild every route on the second animation frame to
rejigger the offstage bit and the animations. Now we build the page once and
update the offstage bit in place and update the animations using
ProxyAnimations.
2016-07-27 13:49:30 -07:00
Adam Barth
c27a9e8292 Add offstage attribute to OffStage (#5059)
Also, add a few more debugging flags.
2016-07-27 12:26:07 -07:00
Ian Hickson
1097d92a8b Fix DatePicker (#5061)
Fundamentally the core problem was that we were not saying how wide a
date picker should be. It should be 330 pixels, if I'm measuring the
spec's mocks correctly.
2016-07-27 08:57:56 -07:00
Ian Hickson
edc548adf8 Update the license mechanism to show package names (#5051) 2016-07-26 13:09:47 -07:00
Hans Muller
a555ee4771 TimePicker layout tweaks (#5047) 2016-07-26 12:50:40 -07:00
Jason Simmons
3b577c537c Clear the pointer absorbing flag after temporarily setting it while popping a route (#5036)
Fixes https://github.com/flutter/flutter/issues/4910
2016-07-26 11:13:34 -07:00
Hans Muller
4c3018f725 A tap is not a scroll (#5038) 2016-07-26 09:55:43 -07:00
Adam Barth
b30959d748 Center AppBar title on iOS (#5039)
This patch adapts the AppBar to feel more like iOS by centering the title.

Fixes #4962
2016-07-25 18:40:59 -07:00
Adam Barth
0f68a2bac2 Be more explicit about the default TargetPlatform (#5034) 2016-07-25 17:05:41 -07:00
Adam Barth
e4e6b01afa Adapt FlexibleSpaceBar to iOS (#5037)
We should center the title of flexible space bars on iOS.

Related to #4962
2016-07-25 17:05:29 -07:00
Matt Perry
07ba37976c Fix bug where text input would remain underlined upon losing focused. (#5027)
BUG=https://github.com/flutter/flutter/issues/4904
2016-07-25 17:26:09 -04:00
Adam Barth
5717cd54e0 Add a platform field to Theme (#5024)
We'll use this field to adapt material widgets to iOS.
2016-07-25 12:58:13 -07:00
Adam Barth
ae80d43364 Don't animate fab in a new scaffold (#5015)
If the scaffold is new and has a floating action button, we skip the entrance
animation for the fab.

Fixes #4445
2016-07-22 15:53:08 -07:00
Adam Barth
39e759212f Improve compositing strategy for Shrine (#5014)
This patch includes a number of improvements:

 * Material page routes now put a repaint boundary inside their transition so
   they don't repaint during the transition.
 * Heroes that are on a quest now get a repaint boundary so we repaint them
   individually.
 * I've hoisted the transparent material for the product items up in the widget
   tree, which doesn't affect performance but makes the ink splashes reach the
   edge of the product cards.
 * I've changed the repaint rainbow visualization to make it easier to see
   what's going on.
2016-07-22 14:09:48 -07:00
Adam Barth
1a292ff66a Hint that painting shadows are complex (#5000)
Previously, we considered them one operation in the compositor, which didn't
trigger caching. Now we have a way to explicitly hint that the compositor
should cache a layer.
2016-07-22 13:42:16 -07:00
Hans Muller
7beedd7a95 Report ScrollNotification depth (#4992) 2016-07-22 09:20:46 -07:00
Dragoș Tiselice
6f0635d6e8 Merge pull request #4953 from flutter/drawer-header-update
Updated DrawerHeader to new spec.
2016-07-21 11:17:18 -07:00
Dragoș Tiselice
3aa26cb1cc Merge pull request #4971 from flutter/circle-avatar-background-image
Added backgroundImage to CircleAvatar.
2016-07-21 11:16:36 -07:00
Hans Muller
36eb4a066f Support for Material arc point and rect transitions (#4938) 2016-07-21 10:48:41 -07:00
Ian Hickson
69d78325ec Licenses (#4984)
This makes the about page show the licenses of all the Dart packages that a Flutter app uses.

Issues that this does not yet resolve:
- I'm still working on getting the full list of licenses for the sky_engine package.
- Some of the licenses don't print very readably.
- There's no scrollbar on the license page.

I'll provide fixes for the first two in the coming days, but this should unblock anyone who is wanting to see something here, even if it's not quite complete. :-)

----

The patch makes the following changes: 

- The license registry is now asynchronous, since the data comes from disk.
- I moved the default license collector from the foundation package to the services package since it uses the default asset bundle now.
- The FLX builder now includes the LICENSE files of each Dart package mentioned in the `.packages` file.
2016-07-21 09:09:48 -07:00
Dragos Tiselice
65e77142e9 Updated DrawerHeader and added UserAccountDrawer.
Removed old Stack layout and added a simple-to-extend interface for the
new drawer header. Also added a specialized UserAccountsDrawerHeader
consistent with Material Design guidelines.
2016-07-20 16:16:08 -07:00
Eric Seidel
771d7910f0 Add a cross-reference to MaterialApp from CheckedModeBanner (#4981)
so that folks have some prayer of figuring out from our docs
how to turn it off. :)

@Hixie
2016-07-20 13:14:01 -07:00
Dragos Tiselice
83f37246d5 Added backgroundImage to CircleAvatar.
In order to have an efficient way to display clipped avatars,
backgroundImage was added inside of the container's BoxDecoration.
Fixes #4964. This commit also fixes #4567 where the radius property
actually sets the diamater.
2016-07-20 09:52:21 -07:00
Hans Muller
7a3c0a2eba Draw a smoother overscroll indicator on Android (#4945) 2016-07-18 12:20:00 -07:00
Jason Simmons
94d1104429 Fix the calculation of image heights in ImageFit.scaleDown mode (#4939)
Fixes https://github.com/flutter/flutter/issues/4407
2016-07-15 17:04:36 -07:00
Hans Muller
05e200f12a Fixed some typos (#4929) 2016-07-15 13:53:51 -07:00
Hans Muller
012d9381a8 RefreshIndicator backgroundColor (#4924) 2016-07-14 17:24:36 -07:00
Hans Muller
12764a0066 RefreshIndicatorState.show() (#4877) 2016-07-11 10:11:34 -07:00
Adam Barth
63b034e6b8 Showing the material grid shouldn't lose app state (#4857)
Previously adding the GridPaper caused us to lose all the state in our app. Now
we use a global key to keep our state.

Fixes #4648
2016-07-08 14:44:56 -07:00
Adam Barth
56aa920858 Improve how ImageIcon does opacity (#4847)
Putting the opacity in the color is much faster than using an opacity
widget because the opacity widget creates an offscreen buffer.

Fixes #4651
2016-07-08 13:39:54 -07:00
Adam Barth
dda744eccc Fix attaching a dirty, detached SemanticsNode (#4855)
Previously we triggered an assert.

Fixes #4850
2016-07-08 13:28:42 -07:00
Adam Barth
c9248cd4a6 Tooltip can disappear too quickly (#4851)
We were stacking up two dismiss timers. Now we don't start a new timer
if we've already got one. Also, fix an animation leak caught by the
test.

Fixes #4640
2016-07-08 09:52:09 -07:00
Adam Barth
fc711a10cd Custom switch images are nutty (#4852)
Rather than requiring the developer to specify a full Decoration, we now
just take an ImageProvider for the thumb image. Also, fix
ImageFit.scaleDown to actually work.

Fixes #4571
Fixes #4673
2016-07-08 09:51:51 -07:00
Adam Barth
d7a4a54b36 TwoLevelSublist should have an onOpenChanged callback (#4848)
Also, fix an animation leak found by the test.

Fixes #4619
2016-07-08 08:07:05 -07:00
Adam Barth
9e111d1872 Cleanup axis-aligned padding (#4845)
We now have an EdgeInsets.along function that projects the padding onto the
given Axis rather than repeating this function in several places.
2016-07-07 16:44:24 -07:00
Hans Muller
0f15263cea RefreshIndicator dismiss transition, remain visible during refresh, etc (#4844) 2016-07-07 16:30:10 -07:00
Adam Barth
e8a638ecf9 Minor RenderBox improvements (#4837)
* Make the size setter on RenderBox protected to avoid setting from
   outside the class.
 * Make normalize on BoxConstraints always return an object that
   isNormalized.
2016-07-07 07:49:35 -07:00
Adam Barth
04dca44f27 Be consistent about method versus function (#4828)
Fixes #4761
2016-07-06 18:45:42 -07:00
Devon Carew
ec752d813d send ext.flutter.debugDumpApp; ext.flutter.reassemble (#4810)
* send ext.flutter.debugDumpApp; ext.flutter.reassemble

* expose debugDumpRenderTree
2016-07-04 11:21:56 -07:00
Adam Barth
3cbb20d176 Just use SemanticAnnotator instead of Iterable<SemanticAnnotator> (#4813) 2016-07-03 21:16:21 -07:00
Adam Barth
839def55ba Teach the system to shutdown semantics (#4811)
We now stop updating semantics when there are no remaining clients.
2016-07-01 17:57:10 -07:00
Jason Simmons
cbf7d98874 Allow a host message handler to return a null result (#4812)
Host apps will return null if there is no matching handler for a message name
2016-07-01 15:50:29 -07:00
Adam Barth
5ed8f1a1fd Add semantics for Sliders (#4808)
Also, make SemanticsOwner into a real class and use it instead of a static in
several places.
2016-07-01 13:38:24 -07:00
Adam Barth
8c535ad7d7 Update use of @protected (#4805)
Now that protected can be accessed from inside the same library, we can
use protected in a number of new places and we can remove some
trampolines we were using to work around its previous semantics.
2016-07-01 10:06:40 -07:00
Adam Barth
e0f37027ab Add some tests for these tweens (#4804) 2016-07-01 09:46:37 -07:00
Adam Barth
95a26ab0e8 Switch to SemanticAction (#4791)
This patch updates the framework to use the new SemanticAction in
semantics.mojom.
2016-06-30 17:38:05 -07:00