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
Hans Muller
0d958f036c
Added a hero test ( #8629 )
2017-03-07 14:56:48 -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
46291903e0
Declare locals final where not reassigned (tests) ( #8566 )
2017-03-03 17:43:22 -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 5271546794 .
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
Chris Bracken
9f92f7928e
Add tests for ScrollController assertions ( #8499 )
...
Ensure that read and write operations fail on ScrollControllers
associated with a number of positions other than 1.
2017-03-01 11:18:43 -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
Chris Bracken
297a0341a6
Update scroll tests to use pumpUntilNoTransientCallbacks ( #8495 )
...
This ensures that both timer/microtask queues are cleared out rather
than assuming that all work is completed in a specified amount of time.
2017-03-01 10:09:29 -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
Alexandre Ardhuin
18ad3eb557
avoid // ignore: prefer_const_constructors ( #8419 )
...
* avoid // ignore: prefer_const_constructors
* address review comments
2017-02-28 16:40:10 -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
Chris Bracken
6491cbf7a3
Ensure PrimaryScrollController is returned when primary: true ( #8440 )
...
Also a small formatting fix.
2017-02-27 17:17:29 -08:00
Chris Bracken
c8c37fcc85
Primary scroll view support for SingleChildScrollView ( #8437 )
2017-02-27 16:10:57 -08:00
Hans Muller
97083ac6aa
Export DecorationPosition, use it in ListItem ( #8427 )
2017-02-27 12:24:02 -08:00
Adam Barth
932f7cef0c
Scaffold shouldn't assert with large bottom padding ( #8415 )
...
Fixes #8413
2017-02-25 23:48:23 -08:00
Luke
87f1487e56
Adds un/selected text styles to the TabBar widget ( #8417 )
...
* Adds un/selected text styles to the TabBar widget
* Adding documentation on fallback values. Modified fallback on unselectedLabelStyle.
2017-02-25 23:39:22 -08:00
Adam Barth
f20c3d1032
Add a color argument to Container. ( #8396 )
...
It's common to just want a simple colored box. Simple thing should be simple,
so this patch adds a convenience argument to Continer for creating a box
decoration that is just a color.
Fixes #5555
2017-02-24 12:25:48 -08:00
Adam Barth
76394630ac
Add barrierDismissable argument to showDialog ( #8397 )
...
In some situations, dialogs don't want the barrier to be dismissable.
Fixes #8354
2017-02-24 12:25:33 -08:00
Adam Barth
eb839755b7
Overscrolls should appear below pinned headers ( #8383 )
...
With slivers, the app bar is part of the scroll view. Naively, the overscroll
appears at the beginning of the scroll view, but that's not the desired
behavior. Instead, the app bar should remained pinned to the top of the scroll
view and the overscroll should appear below the app bar, which is what this
patch does.
Fixes #8228
2017-02-24 08:11:08 -08:00
Adam Barth
6a9ea16e9f
jumpTo during a user drag shouldn't assert ( #8384 )
...
Fixes #8380
2017-02-23 19:08:27 -08:00
Alexandre Ardhuin
8c043d06de
fix lints for directives_ordering rule ( #8382 )
2017-02-23 13:37:26 -08:00
Chris Bracken
064a63e932
Add haptic feedback tests for DatePicker ( #8376 )
2017-02-23 10:53:40 -08:00
Chris Bracken
ebaffbdd07
Correct spelling of 'Interval' in var name ( #8375 )
2017-02-23 10:53:29 -08:00
Chris Bracken
093afe0255
Haptic feedback on time changes in TimePicker ( #8348 )
...
Trigger a vibration on hour/minute changes, with an upper bound on
number of feedback events per second.
Note: state changes are expected to trigger haptic feedback on Android,
but not on iOS time pickers.
2017-02-22 19:11:44 -08:00
Hans Muller
3a0b83b1b6
Added support for a pinned floating SliverAppBar ( #8345 )
2017-02-22 16:19:36 -08:00
Chris Bracken
9ada90a160
Suppress TimePicker haptic feedback on iOS ( #8347 )
...
State changes are expected to trigger haptic feedback on Android, but
not on iOS time pickers.
2017-02-22 16:16:52 -08:00
Adam Barth
5e93756f19
Clean up flipping of ScrollDirection ( #8343 )
...
Makes RenderViewport.layoutOneSide more readable.
2017-02-22 15:57:32 -08:00
xster
34a6e48ac8
16 dp title margin when there’s no leading button ( #8344 )
2017-02-22 14:53:53 -08:00
Adam Barth
fc9a00fd6c
Improve the error message for unbounded viewports ( #8321 )
...
Rather than generating a cryptic assert, we now generate a more useful error
message.
Fixes #8296
2017-02-22 13:29:13 -08:00