2286 Commits

Author SHA1 Message Date
Adam Barth
8f6aefa2c8 Remove HostMessages (#7436)
This API was deprecated. Clients should use PlatformMessages instead.
2017-01-11 08:59:43 -08:00
Adam Barth
2ee04c92bf Improve test coverage (#7430)
Also, make the exception handling for global key listeners slightly more
robust.
2017-01-10 20:41:42 -08:00
Adam Barth
03d1980733 Change Flexible's default FlexFit (#7404)
Change `Flexible`'s default `FlexFit`

Previously, `Flexible` defaulted to `FlexFit.tight`, which forced the child to
expand to fill the available space. Now, `Flexible` defaults to
`FlexFit.loose`, which does not force the child to expand to fill the available
space.

If you want the child to expand to fill the available space, consider using
`Expanded` instead.

Fixes #5169
2017-01-10 13:12:04 -08:00
Hans Muller
2155fb74b6 Tweak the Navigator class doc (#7415) 2017-01-10 11:19:09 -08:00
Adam Barth
5a2bf18488 Improve test coverage and fix bugs (#7410)
This patch improves test coverage for a number of files that had low
coverage. This patch also fixes a few minor bugs found by these tests.
2017-01-10 10:15:33 -08:00
Adam Barth
684259794b Add CupertinoAlertDialog (#7395)
Fixes #7375
2017-01-09 21:35:43 -08:00
Adam Barth
cd34593ca8 Test print.dart (#7406) 2017-01-09 21:35:26 -08:00
Ian Hickson
2eecb8be37 Improve Notification API (#7403)
- better documentation

- verify (at run time) that onNotification doesn't return null, and
  report copious helpful information if it does.

- add a toString/debugFillDescription convention to Notification.

- actually test Notification
2017-01-09 16:44:22 -08:00
Ian Hickson
d3faada983 Trivial improvement of AbstractNode docs. (#7399)
This confused me briefly the other day.
2017-01-09 16:33:40 -08:00
Ian Hickson
cd92e11f17 Use the actual pipeline owner for this assert. (#7400) 2017-01-09 16:33:25 -08:00
Adam Barth
84cf54892d Improve test coverage (#7401)
This patch adds a number of tests for previously untested lines.
2017-01-09 16:19:24 -08:00
Matt Perry
12d5b26c3a Add an onChanged callback to InputFormField. (#7398)
Fixes https://github.com/flutter/flutter/issues/7210
2017-01-09 15:43:16 -08:00
Hans Muller
b23aed7a86 New Tabs API (#7387) 2017-01-09 14:55:36 -08:00
Ian Hickson
e82b18d47b The core RenderSliver protocol. (#7370)
This implements a new RenderViewport2 class to replace the existing
RenderViewport class.
2017-01-09 14:49:14 -08:00
Adam Barth
0c42c9b1b2 Add CupertinoActivityIndicator (#7380)
Fixes #7372
2017-01-06 15:58:26 -08:00
Adam Barth
b40f0cae9c Allow Expanded.flex to be null (#7384)
Some clients pass null, which was previously allowed by Flexible.

Fixes #7383
2017-01-06 13:59:40 -08:00
Adam Barth
5b1e7c0a37 Rename TransferMode to BlendMode (#7357)
Skia calls this BlendMode now and that's a better name.

Fixes #7200
2017-01-06 00:07:47 -08:00
Ian Hickson
b0e8520ae6 Make LayoutCallback generic and other minor changes (#7367)
LayoutCallback passes constraints to the callback, but the constraints
object has a different type for different subclasses. This lets you
call invokeLayoutCallback() with a specific type to verify that
everything is working as expected.

Other changes:

Slightly improve the error reporting in RenderObject.

Allow toStringShallow on RenderObject to have its separator configured.
2017-01-05 22:12:08 -08:00
Ian Hickson
ec9a6fbbdd Add an assert and remove a TODO (#7368)
The assert helped me debug an issue recently.

The TODO is obsolete.
2017-01-05 22:11:29 -08:00
Ian Hickson
79c8e5c7c7 Add a toString to Simulation (#7364)
Also, make hasOneLineDescription more discerning.
Also, add a test for hasOneLineDescription.
Also, add a test for GravitySimulation, to test the toString.
2017-01-05 16:33:40 -08:00
Ian Hickson
11d1d54c8a Changes to the drag gesture detectors and the velocity tracker (#7363)
- more dartdocs for the drag typedefs

- more toStrings to aid debugging

- require the position for DragUpdateDetails since we were omitting it
  in some places

- add the primaryVelocity to DragEndDetails so that consumers don't
  have to themselves track the axis in question

- fix the velocity tracker so that it doesn't walk the null data.
  Previously, near time t=0 (which pretty much only matters in tests,
  but it does matter there) we would walk the velocity data and then
  also walk missing data, treating it as Point.zero with t=0.

- simplify some of the velocity tracker; e.g. instead of trying (and
  failing?) to clear the velocity tracker when the pointer stalls,
  just drop the data before a stall during the velocity estimation
  (where we redundantly had another bigger horizon anyway).
2017-01-05 16:19:14 -08:00
Ian Hickson
629255eb49 Fix SizeChangedLayoutNotifier and its test. (#7361)
Previously, SizeChangedLayoutNotifier fired a notification even for
the first layout.

Also, previously its test relied on that, and didn't actually change
size at all. This fixes the test as well.

Also, rename SizeChangedLayoutNotificaion to SizeChangedLayoutNotification.
2017-01-05 16:19:06 -08:00
Seth Ladd
86ad51f1ec Doc that SizedBox.expand can be used by Scaffold.body (#7141)
Closes https://github.com/flutter/flutter/issues/6907
2017-01-05 15:18:40 -08:00
Ian Hickson
207968ff79 Make SingleTickerProviderStateMixin more resilient (#7360)
It used to crash when the State never actually used the TickerProvider
interface.
2017-01-05 15:11:28 -08:00
Ian Hickson
7f3dc76b8d Minor improvement to Tween docs (#7354) 2017-01-05 14:39:23 -08:00
Adam Barth
30053f2f41 Deprecate HostMessages (#7352)
This class is just an alias for PlatformMessages. We'll remove it after a short
deprecation period.
2017-01-05 14:01:27 -08:00
Ian Hickson
5c360c8320 Minor tweaks to Curve documentation (#7353) 2017-01-05 13:10:41 -08:00
Ian Hickson
b2c244efe8 Allow nulls in Listenable.merge (#7355)
This lets you use `Listenable.merge` without having to sanitize your
incoming list of change notifiers, in case your semantics are that
they are optional.
2017-01-05 13:10:30 -08:00
Adam Barth
27970bd82d Remove package:flutter/cassowary.dart (#7350)
We didn't end up using this mechanism.
2017-01-05 13:08:43 -08:00
Adam Barth
c6b9cdf80d Clarify Draggable docs (#7341)
More clearly explain the role of child, childWhenDragging, and feedback.

Fixes #6962
2017-01-05 11:30:15 -08:00
Adam Barth
0c6dc598f7 Slider shouldn't be open at min (#7342)
This patch changes the default appearance of Slider to not have the
thumb be an open circle at its minimum position. The `thumbOpenAtMin`
property can enable drawing an open thumb at the min position, which was
the previous behavior.

Fixes #6941
2017-01-05 11:29:55 -08:00
Hans Muller
c613a85c0f Invalid Curve transform parameter should assert (#7340) 2017-01-04 17:11:05 -08:00
Adam Barth
1146587cc7 Improve Scaffold.of docs (#7339)
The docs now include all the information contained in the exception.

Fixes #6994
2017-01-04 16:30:37 -08:00
Adam Barth
86e5fce61a Tooltip update can cause assert (#7338)
We were trying to update the tooltip overlay entry, but that cannot work
because the overlay entry might have already built. Instead, we keep the
old value.

Fixes #7151
2017-01-04 16:08:29 -08:00
Adam Barth
3176921d16 Add CupertinoSlider (#7336)
This widget matches the style of the iOS slider widget. We don't yet
have the proper visual design for the disabled state.
2017-01-04 16:08:19 -08:00
Adam Barth
96fa6c3ea4 IgnorePointer and AbsorbPointer should crossdoc each other. (#7337)
Fixes #7252
2017-01-04 15:09:10 -08:00
Adam Barth
9552de30ba Tweak visual appearance of CupertinoSwitch (#7328)
This patch makes the CupertinoSwitch follow the style of the iOS switch
more accurately.
2017-01-04 12:41:13 -08:00
Adam Barth
732a83d408 Add CupertinoSwitch (#7326)
This patch contains a first draft of an iOS-style switch. We'll likely need to
tweak the constants upon closer study, but the basics are here.
2017-01-03 22:11:35 -08:00
lequem
500981fe0f make dialog background color configurable (#7320) (#7323) 2017-01-03 15:02:06 -08:00
Michael 'afrolion' Perrotte
2bb93db2b7 fixed doc typo (#7270) 2017-01-02 21:35:06 -08:00
Hans Muller
d05c7f62f2 UserAccountsDrawerHeader gallery demo, etc (#7297) 2016-12-21 06:19:42 -08:00
Hans Muller
c9c577aeeb BoxDecoration should clip its backgroundImage if shape is BoxShape.circle (#7292) 2016-12-20 07:54:57 -08:00
Luke
1b9939af95 Rename DestinationLabel on BottomNavigationBar (#7281)
* rename DestinationLabel and labels properties to BottomNavigationBarItem and items

* update/fix comments

* grammatical changes

* add myself to AUTHORS
2016-12-17 18:14:37 -08:00
Ian Hickson
3e3d21926b Curves.decelerate (#7284)
Port DecelerateInterpolator to Flutter.

Also, hide the Curve subclasses that you can't extend and that have no
statics and are generally not useful.
2016-12-16 15:30:41 -08:00
Matt Perry
6d4191e98c Forms provide more control over when they validate. (#7283)
Callers can manually validate by calling validate(), or tell the Form to
validate on every change by setting the `autovalidate` parameter.

Fixes https://github.com/flutter/flutter/issues/7219
2016-12-16 18:14:37 -05:00
Hans Muller
0d746ff155 AppBar Menu and action button center alignment (#7280) 2016-12-16 12:11:20 -08:00
Hans Muller
dbf1cfdbf0 Do not pad the Input/InputContainer icon (#7282) 2016-12-16 12:10:57 -08:00
Ian Hickson
977a25f29c Listenable.merge (#7256)
Sometimes you have several listenables, but you want to hand them to an
API (e.g. CustomPainter) that only expects one.
2016-12-15 13:54:53 -08:00
Matt Perry
bf289a2aea Animate size of label text over text fields. (#7241)
* Animate size of label text over text fields.

Also fade in the hintText so it doesn't pop in immediately as the label
text slides up.

Fixes https://github.com/flutter/flutter/issues/7217

* rm annotations

* test

* rename
2016-12-14 15:29:36 -05:00
Matt Perry
7d346dd184 Improve docs for Input and Form and friends. (#7208)
Fixes https://github.com/flutter/flutter/issues/7017
2016-12-12 14:24:45 -05:00