2738 Commits

Author SHA1 Message Date
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
Adam Barth
ff8609f273 Document ScrollController (#9705) 2017-05-01 19:18:09 -07:00
Adam Barth
48f2770e4e Add missing docs (#9696) 2017-05-01 12:18:30 -07:00
Jason Simmons
2ab631b702 Add space to the clipping region of physical model layers with shadows (#9654) 2017-05-01 11:32:09 -07:00
Adam Barth
c6b0f833af Document more scrolling classes (#9684) 2017-04-30 08:59:06 -07:00
Adam Barth
a4ba761bea Document remaining non-scrolling symbols (#9667)
This patch finishes documenting all the symbols except for those related to
scrolling.
2017-04-28 16:01:14 -07:00
xster
f65fea8e2e Create a text validator/formatter mechanism (#9535)
* Add a text formatter interface used by EditingText. Provide some default implementations.

* self nits

* Handle -1 selection offsets

* review notes

* simplify regular expression

* Add whitelisting formatters. Use a custom phone number formatter in text demo.

* review notes

* not being able to addAll(null) is pretty annoying

* review notes

* partial tests

* Add tests

* didn’t end up needing mockito

* move to services
2017-04-28 15:33:38 -07:00
xster
b717963b43 Change Cupertino page transition box shadow to a simple custom gradient (#9673)
Creates another Decoration for drawing outside the decorated box with a gradient to emulate the shadow.

Lets the cupertino transition page's background be transparent.

Fixes #9321
2017-04-28 12:50:20 -07:00
Hans Muller
acf102be95 AnimatedList (#9649) 2017-04-28 11:37:36 -07:00
xster
3a0ce961ca lerp LinearGradient (#9628)
* Implement

* Don’t scale the fractional offsets since it’s easier to use

* review notes

* fix nit
2017-04-27 15:52:41 -07:00
Mikkel Nygaard Ravn
a33832617b Document channel message value conversions (#9635) 2017-04-28 00:04:51 +02:00
Ian Hickson
11fa80bb78 MediaQuery.of shouldn't give a default return value (#9596) 2017-04-27 15:02:59 -07:00
Ian Hickson
36052e68dd BoxDecoration API changes: backgroundColor -> color et al (#9648)
backgroundColor -> color
backgroundImage -> image
BackgroundImage -> DecorationImage
2017-04-27 14:19:01 -07:00
Jason Simmons
1d6a8249f8 roll engine (#9650) 2017-04-27 13:34:48 -07:00
Adam Barth
744c91265b Add NestedScrollView (#9640)
A NestedScrollView lets you implement patterns where you have a header, tabs,
and additional scrollers inside the tabs.

Fixes #8359
2017-04-27 12:29:40 -07:00