2537 Commits

Author SHA1 Message Date
Adam Barth
dc83c4913a Add some missing dartdocs (#8819) 2017-03-15 20:56:49 -07:00
Alexandre Ardhuin
2166ea5b7f apply partially the upcoming unnecessary_lambdas (#8810) 2017-03-15 23:09:58 +01:00
Hans Muller
6f9bfbdaba Support aborted hero flights (#8805) 2017-03-15 12:35:20 -07:00
Alexandre Ardhuin
a9ba0e2f88 prefer_initializing_formals (#8797) 2017-03-15 18:30:55 +01:00
Jason Simmons
054b566915 Framework callback for engine memory pressure events (#8778) 2017-03-15 09:54:10 -07:00
Adam Barth
f182b9786e Add more scrolling dartdocs (#8763)
Also, add a few other random dartdocs that I encountered along the way.
2017-03-14 18:48:15 -07:00
Adam Barth
1e63dc4a72 Merge BuildableElement and Element (#8758)
There aren't any subclasses of Element that don't also subclass
BuildableElement and I suspect they wouldn't work properly anyway.

Fixes #3656
2017-03-14 17:49:10 -07:00
Adam Barth
146fc617ca ScrollController should notify when its offset changes (#8768)
This change make it easier to track the position of the scroll view without
having to worry about the position object changing out from under the
controller.
2017-03-14 14:07:35 -07:00
Adam Barth
fd51093146 Rename SliverPadding.child to SliverPadding.sliver (#8757)
The new name follows the pattern of the name suggesting which layout
protocol the parent expects the child to speak.

Fixes #8664
2017-03-14 14:07:13 -07:00
Hans Muller
859da8d28b Rename ListItem to ListTile, document ListTile fixed height geometry (#8769) 2017-03-14 11:46:30 -07:00
Adam Barth
6b75ac3fde Rename dependenciesChanged to didChangeDependencies (#8767)
The new name matches the style guide. (The old name was just old and predated
the style guide.)

Fixes #8000
2017-03-14 11:21:53 -07:00
Mikkel Nygaard Ravn
898b6f8549 Enable iOS use of platform channels (#8695)
Changed standard encoding to use host endianness. Engine roll.
2017-03-14 00:24:41 +01:00
Adam Barth
cbb495c16d Add more dartdocs for the sliver render objects (#8749)
This patch covers multi-box adaptor and the viewports.
2017-03-13 22:57:05 +00:00
Hans Muller
8a36588627 Fixed scrollable TabBar flashing (#8741) 2017-03-13 14:07:47 -07:00
Adam Barth
f5a6c432fc Add docs for RenderSliverGrid (#8737)
Most of these docs were already in place, but this patch adds the remaining
missing ones.
2017-03-13 20:11:34 +00:00
Adam Barth
fecc4e6584 Docs for RenderSliverFixedExtentList (#8733)
Also, some renames for more accuracy.
2017-03-13 18:12:33 +00:00
Adam Barth
f075cf4450 Make some symbols private (#8731)
These symbols were not intended to be public. Also, remove some bogus dartdocs
for PhysicalModeLayer.
2017-03-13 17:04:14 +00:00
Seth Ladd
01ac75f5e4 Callback wasn't clear what the type of the function was (#8712)
Changing to an inline function, making the type more clear.
2017-03-10 13:49:47 -08:00
Alexandre Ardhuin
16d800b204 normalize setter format (#8708) 2017-03-10 21:52:30 +01:00
Alexandre Ardhuin
c22812e0ea Flutter style guide: Prefer naming the argument to a setter 'value' (#8691) 2017-03-10 09:00:29 +01:00
Alexandre Ardhuin
6a2148dde9 prefer const constructors (#8594)
* prefer const constructors

* fix double throw
2017-03-08 14:58:14 -08:00
Alexandre Ardhuin
ce734e8f24 apply the upcoming rule : directives_ordering (#8582) 2017-03-08 14:58:09 -08:00
Alexandre Ardhuin
329e52c02c apply upcoming rule use_collection_literals_when_possible (#8649) 2017-03-08 14:57:31 -08:00
Ian Hickson
68fb3e4868 Farewell, local fork of the http package. (#8642) 2017-03-07 18:08:36 -08:00
Ian Hickson
944ee24b94 Report GlobalKey duplicates (#8593) 2017-03-07 17:17:02 -08:00
Hans Muller
20d401de1b Revert the new "physical model" shadow rendering code (#8636) 2017-03-07 17:15:29 -08:00
Adam Barth
9aa61e6a72 Remove blank lines from error message (#8550) 2017-03-06 12:36:22 -08:00
Hans Muller
44dbecc6be Animation Demo performance tweaks (#8586) 2017-03-06 11:06:05 -08:00
Luke
bbf84b1d69 Fixes PageView.onPageChanged to only report changes in range (#8553)
* clamp the pixels used in the page calculation to be within min + max extents to avoid pages outside of the range of children

* add test to check onPageChanged not fired on overscroll
2017-03-05 09:38:10 -08:00
Chris Bracken
27e8cc3797 Declare locals final where not reassigned (#8564)
Covers lib/ in package:flutter.
2017-03-03 17:42:23 -08:00
Adam Barth
46c4c5f51a Improve ClipRect documentation (#8560)
Fixes #8557
2017-03-03 15:51:07 -08:00
xster
f894edebff Use exact Ahem and exact dimensions for Cupertino button test (#8561)
* Use exact Ahem and exact dimensions for test

* use ‘px’ everywhere
2017-03-03 14:30:33 -08:00
Hans Muller
54d9541638 Added a gallery animation demo (#8547) 2017-03-03 11:38:19 -08:00
Luke
baaa2e67f8 adds highlightColor and splashColor to InkResponse and InkWell (#8551) 2017-03-02 23:28:55 -08:00
Adam Barth
0403ed4659 Add viewportFraction feature to PageView (#8539)
This feature lets you see a portion of the next and previous page in a
PageView.

Fixes #8408
2017-03-02 21:09:14 -08:00
Adam Barth
1bb164ab0d Stabilize initial scroll simulation velocity on Android (#8543)
Previously, we would create a simulation whose initial velocity did not match
the requested parameters. We now compute the parameters for the simulation in a
way that ensures all the math works out.

Fixes #8255
2017-03-02 17:40:36 -08:00
Chris Bracken
62cc326a67 Constrain app bar header paint origin on iOS overscroll (#8517)
Prevent the app bar header from being overscrolled on iOS by setting
paintOrigin to the overlap.
2017-03-02 14:25:04 -08:00
Chris Bracken
8916b101f3 Avoid potential ConcurrentModificationError (#8534)
Also make locals final where possible.

Followup to 527154679466940189a86e24378c2fa4e5db04a3.
2017-03-02 11:28:30 -08:00
Adam Barth
0421b4f37b Improve docs for Center (#8522)
Fixes #8478
2017-03-02 11:25:55 -08:00
Mikkel Nygaard Ravn
ddaba8992f PlatformMessageChannel: code cleanup, bugfixes, and unit tests (#8509) 2017-03-02 07:24:18 +01:00
Alexandre Ardhuin
69b6bb87d1 prefer_is_empty and prefer_is_not_empty (#8474) 2017-03-01 22:17:30 -08:00
Chris Bracken
5271546794 Better defaulting for scroll view primary-ness (#8506)
* Improved defaults for scroll view primary-ness

* Vertical scroll views default to primary:true.
* Horizontal scroll views default to primary:false.
* If a scroll view is primary and it got a non-null inherited primary
  scroll controller, it introduces a primary scroll controller inherited
  with a value of null for its descendants.

ScrollController now multiplexes writes to all registered positions;
reads of position continue to assert that only one position is
registered. Reads still require a single position.
2017-03-01 16:13:09 -08:00
xster
a76c352d57 Add Cupertino to gallery and add CupertinoButton and many yak friends (#8411)
* Add cupertino to gallery and add CupertinoButto

* Use single quotes

* Add disabled state

* Some review notes

* Make button animation more responsive and tweak timing

* Renamed things Cupertino

* Button with background, move cupertino demos, move material demos

* Move 2 level list too

* Refactor various demo route names

* Some review notes

* More reviews and add test

* Linter as

* Move private constant up
2017-03-01 16:06:48 -08:00
Adam Barth
0b7845a5ac Recommend using AlwaysScrollableScrollPhysics with RefreshIndicator (#8498)
Using these physics avoids a problem whereby the scroll view isn't scrollable
due to lack of content and therefore cannot trigger the refresh indicator.

Fixes #8432
2017-03-01 11:04:42 -08:00
Adam Barth
fcf6740851 Factor BackButton out of AppBar (#8491)
This widget is useful on its own. This patch factors it out of AppBar so
folks can use it separately.

Fixes #8489
2017-03-01 10:45:44 -08:00
Mikkel Nygaard Ravn
390993d070 PlatformXxxChannel concepts added to support Flutter/platform interop (#8394)
New concepts: PlatformMessageChannel (basic message send/receive superseding some existing  PlatformMessages methods), PlatformMethodChannel (method invocation and event streams), pluggable codecs for messages and method calls: unencoded binary, string, json, and 'standard' flutter binary encoding.
2017-03-01 14:35:41 +01:00
Adam Barth
a9e9e3fde6 CustomSingleChildLayout should support listenable (#8470) 2017-02-28 19:09:58 -08:00
Adam Barth
ecb6efa926 Generalize AnimatedWidget to work with any Listenable (#8469) 2017-02-28 16:40:41 -08:00
Jason Simmons
c7695b4ad4 Render the Material widget with the physical model layer (#8471) 2017-02-28 15:50:10 -08:00
Adam Barth
9a83659d78 Add ValueNotifier (#8463)
It's common to have a ChangeNotifier that wraps a single value. This class
makes that easy by providing a generic implementation.
2017-02-28 11:25:23 -08:00