2752 Commits

Author SHA1 Message Date
P.Y. Laligand
af4905ffbb Fixed analysis error. (#10035) 2017-05-12 10:03:18 -07:00
Alexandre Ardhuin
5bce52d6be try use_string_buffers lint (#10034) 2017-05-12 19:00:55 +02:00
Hans Muller
09e8c2ffb0 Update ExpansionTile, added a sample app (#10019) 2017-05-12 09:11:00 -07:00
Adam Barth
bd56c79767 Handle back during pushReplacement (#10016)
Previously, we would strand the old route in the overlay even though it had
been removed from the history.
2017-05-11 19:33:37 -07:00
Adam Barth
b9f4e5dac7 Make AnimatedCrossFade's alignment configurable (#9973)
The default is topCenter, which is sensible, but someone might want to use a
bottomCenter alignment, for example.
2017-05-11 17:47:19 -07:00
xster
81ec553fb6 More Cupertino dialog UI tweaks (#9960)
* is default

* hit target

* correct test name

* review note
2017-05-10 18:59:50 -07:00
Ian Hickson
e5e5f61c66 Improve error messages from slivers. (#9971)
Also, fix some logic in SliverPadding.
2017-05-10 17:34:17 -07:00
Ian Hickson
7a52116d05 Make PhysicalModel more convenient, and add debug info (#9975) 2017-05-10 16:27:02 -07:00
P.Y. Laligand
d562e1aa63 Fixed some analysis errors. (#9967) 2017-05-10 15:30:28 -07:00
Ian Hickson
abaf290119 Further improve the docs for box_painter. (#9936) 2017-05-10 15:09:15 -07:00
Mikkel Nygaard Ravn
bc390ef4d0 Add sample code to FutureBuilder (#9952) 2017-05-10 13:42:26 +02:00
Alexandre Ardhuin
e4546584d1 enable always_require_non_null_named_parameters lint (#9948)
* enable always_require_non_null_named_parameters lint

* Update home.dart
2017-05-10 08:45:36 +02:00
Chris Bracken
60f5ae8e77 Add const non-null asserts where required (#9945)
Also includes minor doc fixes.
2017-05-09 21:15:42 -07:00
Chris Bracken
0b2fb13269 Add const non-null asserts where required (#9939)
Also fixes a small typo.
2017-05-09 17:56:49 -07:00
Hans Muller
1157812bb9 Added ExpansionTile and deprecated TwoLevelList et al (#9938) 2017-05-09 16:32:01 -07:00
Chris Bracken
5b18fca053 Add const non-null asserts where required (#9937) 2017-05-09 15:41:06 -07:00
Ian Hickson
58a11f0117 Fix a few more dartdoc errors (#9907)
Turns out that `[]:` means something in markdown, so you have to
escape the `:` with a backslash.
2017-05-09 15:33:01 -07:00
Ian Hickson
f4f68dff1b Make the page-view remembering logic actually work. (#9905)
It wasn't tested, which is why it didn't work before.
2017-05-09 15:32:54 -07:00
Ian Hickson
9cb12086bb Samples for BoxDecoration and some related classes (#9902) 2017-05-09 14:03:16 -07:00
Chris Bracken
9935b3075c Use boolean json representation for obscureText (#9927)
Corrects type from string introduced in
21712a49a76af0fab63246a9acbe61f3e1928070.
2017-05-09 13:48:11 -07:00
Sarah Zakarias
d6b1ad5456 Remove url_lancher and path_provider from services (#9916) 2017-05-09 15:13:05 +02:00
Chris Bracken
21712a49a7 Add obscureText field to TextInputConfiguration (#9908)
Provides a cue to the engine to disable auto-correct/suggest.
2017-05-08 17:38:22 -07:00
Ian Hickson
3012cce146 Clean up Tween and friends. (#9858) 2017-05-08 10:42:06 -07:00
Hans Muller
a6eb0a3e38 Gallery animation demo back button update (#9853) 2017-05-08 10:13:13 -07:00
xster
f52cbe8189 round 1 (#9876) 2017-05-08 00:06:28 -07:00
Ian Hickson
127545a353 More doc fixes. (#9848) 2017-05-06 15:08:14 -07:00
Chris Bracken
d1e895224e Assert that required params are non-null (TextInput) (#9860) 2017-05-05 21:44:46 -07:00
Chris Bracken
274205c1b5 Minor improvements to TextInput docs (#9859) 2017-05-05 21:44:29 -07:00
Seth Ladd
582ee409f5 link more explicitly from route to navigator (#9843)
* link more explicitly from route to navigator

* fix from review
2017-05-05 19:02:50 -07:00
Hans Muller
3681aee5a4 Selectively enable page scrolling in the gallery animation demo (#9845) 2017-05-05 16:02:25 -07:00
Chris Bracken
5a9b525146 Fix a typo: unknown action type (#9844) 2017-05-05 11:27:15 -07:00
Eason Pai
0652737f3b They “are are” created, as needed (#9831) 2017-05-05 07:34:55 -07:00
Ian Hickson
c7469e005d Fix many dartdoc typos (#9822) 2017-05-04 19:54:06 -07:00
postmasters
1a571b5c90 OverlayState.add* should have been OverlayState.insert* (#9773)
Trivial doc typo.
2017-05-04 13:32:35 -07:00
Hans Muller
cddf06cf26 Added scroll snapping to the gallery animation demo (#9710) 2017-05-03 16:35:28 -07:00
Hans Muller
4ca447b61e Refactored the iOS Scrolling Simulation (#9754) 2017-05-03 15:54:17 -07:00
Ian Hickson
cbfde9650d Appbar should update when you add a drawer. (#9755)
Also, I had a question about flutter_test matchers and our style guide
says that when I have a question I should update the docs so I did
that and then got a bit carried away.
2017-05-03 12:56:18 -07:00
Ian Hickson
d604791a1c Try indenting the lists more in case that fixes the problem. (#9752)
See https://github.com/flutter/flutter/issues/9726; for some reason
the markdown in this file is getting misinterpreted.
2017-05-03 12:56:07 -07:00
Ian Hickson
8d7733fdb1 Add more breadcrumbs around material buttons and ink wells. (#9760) 2017-05-03 12:55:57 -07:00
Jason Simmons
b586a97ad2 Enable physical model shadows (with animation) and change elevation to a double (#9756)
Fixes https://github.com/flutter/flutter/issues/9342
2017-05-03 12:11:01 -07:00
Ian Hickson
c8ad201484 Save scroll position when scrolling. (#9740) 2017-05-03 09:59:09 -07:00
Ian Hickson
30d4736900 Random dartdoc fixes (#9745) 2017-05-03 09:13:57 -07:00
Adam Barth
1faaf8ead6 Document Viewport and NestedScrollView (#9735) 2017-05-02 17:33:51 -07:00
Adam Barth
9fe68ef7b3 Document ScrollPosition (#9731) 2017-05-02 17:33:41 -07:00
Ian Hickson
f64bfba860 Tapping a ScrollView during overscroll got it stuck. (#9721)
Fixes https://github.com/flutter/flutter/issues/8476

More detailed list of changes in this patch:

* Replaced the didTouch special logic with more generic logic that
  uses Activities instead. Now instead when you tap down the
  Scrollable calls `hold()` which begins a HoldScrollActivity which is
  a hybrid of DragStartDetails and IdleScrollActivity and can be
  canceled. When you let go, it gets canceled and that goes ballistic.

* Make DragGestureRecognizer more aggressive about grabbing pointers,
  otherwise a second pointer in a situation with competing horizontal
  and vertical recognizers always gets taken by the other one.

* Fixed the _GestureSemantics widget to call the "down" callbacks so
  that it follows the same pattern as "real" interactions.

* Added tests for the above.

* Added a hashCode to ScrollActivity.toString (and subclasses).

* Added a toString to ScrollDragController, and include it in
  DragScrollActivity's toString.

* s/coorindator/coordinator/

* Add a comment in DragStartDetails to distinguish it from the
  otherwise identical DragDownDetails, so we're not tempted to merge
  them.
2017-05-02 16:31:11 -07:00
Adam Barth
1d726bbeb5 Left align AppBar title on iOS with multiple actions (#9723)
If there is more than one action, then the AppBar should align the title to the
left according to
<https://material.io/guidelines/platforms/platform-adaptation.html#platform-adaptation-platform-recommendations>
2017-05-02 12:53:03 -07:00
Adam Barth
49d32d35ea Add more docs about scrolling (#9711) 2017-05-02 10:46:49 -07:00
Adam Barth
ea96773fd1 Use horizontal dots on iOS menu button (#9722)
As required by
<https://material.io/guidelines/platforms/platform-adaptation.html#platform-adaptation-platform-recommendations>.
2017-05-02 10:38:50 -07:00
Ian Hickson
e8c46927c4 Flush microtasks after transient callbacks are run. (#9702)
This splits the frame pipeline into two, beginFrame and drawFrame.

As part of making this change I added some debugging hooks that helped
debug the issues that came up:

 * I added debugPrintScheduleFrameStacks which prints a stack whenever
   a frame is actually scheduled, so you can see why frames are being
   scheduled.

 * I added some toString output to EditableText and RawKeyboardListener.

 * I added a scheduler_tester.dart library for scheduler library tests.

 * I changed the test framework to flush microtasks before pumping.

 * Some asserts that had the old string literal form were replaced by
   asserts with messages.

I also fixed a few subtle bugs that this uncovered:

 * setState() now calls `ensureVisualUpdate`, rather than
   `scheduleFrame`. This means that calling it from an
   AnimationController callback does not actually schedule an extra
   redundant frame as it used to.

 * I corrected some documentation.
2017-05-02 09:27:53 -07:00
Ian Hickson
89856c0e5b Adjust the defaults behaviour of scroll views. (#9679)
* Adjust the defaults behaviour of scroll views.

Now, primary scroll views scroll by default. Others only scroll if necessary.

* apply suggested changes
2017-05-02 09:14:50 -07:00