2703 Commits

Author SHA1 Message Date
Adam Barth
8d87e66f2a Defunct RawKeyboardListeners shouldn't receive events (#7058) 2016-11-28 14:18:30 -08:00
Adam Barth
f36b218ed3 Remove ChildSceneLayer (#7052)
This Fuchsia-specific code is moving into Fuchsia itself.
2016-11-28 12:28:08 -08:00
Ian Hickson
744e89f156 More docs and other tweaks (#7026)
This fixes minor issues I ran into while using Flutter.
2016-11-27 13:50:37 -08:00
Ian Hickson
cdf2779e63 More docs for license screens (#6954) 2016-11-27 10:00:47 -08:00
Chris Bracken
98da192d60 Assert that time dilation is positive non-zero (#7011)
Q: What happens if we set time dilation to zero?
A: It would be bad.
2016-11-23 17:46:05 -08:00
Hans Muller
e3d0544954 Report why a snackbar was closed (#6996) 2016-11-23 10:34:53 -08:00
Adam Barth
bb3815694c Improve the docs for CustomMultiChildLayout (#6980)
Fixes #5695
2016-11-23 00:26:14 -08:00
Hans Muller
37daf034db Make the InputContainer underline's visibility configurable (#6976) 2016-11-22 09:07:21 -08:00
Adam Barth
e0a9c0a98a Improve Scaffold.drawer and Navigator.popUntil docs (#6977)
Fixes #6963
2016-11-21 23:36:32 -08:00
Adam Barth
8ca4caa440 Rename Flexible to Expanded and improve docs (#6978)
This patch replaces uses of Flexible with Expanded where we're using
FlexFit.tight. We still need to think of a better name for the
FlexFit.loose variant.

Also, improve the docs for Row, Column, Flex, and RenderFlex to be more
problem-oriented and to give a complete account of the layout algorithn.

Fixes #6960
Fixes #5169
2016-11-21 23:16:43 -08:00
Hans Muller
516ac574c0 Allow null DropdownButton values (#6971) 2016-11-21 16:36:19 -08:00
Adam Barth
1e1bed1e41 Add an example for BuildContext.ancestorStateOfType (#6953) 2016-11-21 12:29:01 -08:00
Ian Hickson
9c1a24fa72 Reexport meta from foundation. (#6938) 2016-11-18 21:22:32 -08:00
Hans Muller
1e76c1f811 Added backgroundColor to SnackBar (#6929) 2016-11-18 11:07:41 -08:00
Hans Muller
5ceaaeefce Add dense layout support to dropdown (#6906) 2016-11-18 10:30:58 -08:00
Günter Zöchbauer
b7f8ec667c Copy-paste error in documentation of StatefulWidget (#6923) 2016-11-18 01:03:56 -08:00
Ian Hickson
58801a0ee4 Expose the current velocity on AnimationController (#6908)
(and minor doc changes)

This will in the future allow Scrollable to not track the Simulation itself.
2016-11-17 15:59:25 -08:00
Ian Hickson
473df6d632 dartdoc doesn't seem to support tables (#6895)
...at least not in the traditional markdown style.
So let's try HTML instead.
2016-11-16 13:12:40 -08:00
Jason Simmons
e7c2571b57 Handle empty sizes in AppBar's toolbar layout (#6894) 2016-11-16 12:31:56 -08:00
Hans Muller
a7360d24fe Factor out Input's layout: add InputContainer etc (#6881) 2016-11-16 08:53:07 -08:00
Michael 'afrolion' Perrotte
4bc00df7f6 fixed typo (#6888)
`[IconButton]` is referenced as singular everywhere else, so the _most correct_ version would be singular (`[IconButton]`) with the `s` outside of the brackets.
2016-11-15 22:24:28 -08:00
Adam Barth
a4a783b64f Add support for pointer hover (#6884) 2016-11-15 21:13:37 -08:00
Ian Hickson
15fb5c4ca6 Clean up some RenderObject layer stuff (#6883)
More idiomatic use of constraints in performResize.

Trivial fixes to comments.

Make ProxyBox not use BoxParentData since it ignores the field.

Make applyPaintTransform more helpful if you use a different ParentData
subclass than RenderBox expects.

Make debugAssertIsValid actually fulfill its contract in RenderObject as
documented.

Add a childBefore for symmetry (we already had childAfter).

Fix the way we dump the child list when there's no children in a
multichild render object.

More asserts in the rendering test library.
2016-11-15 17:55:51 -08:00
Ian Hickson
a8fe83ae19 Forget then deactivate (#6885)
...so that when you detach, you still have the slot, the parentData, etc.
2016-11-15 17:54:35 -08:00
Ian Hickson
18362ec61d Improve the debugDumpFoo output (#6882) 2016-11-15 16:53:03 -08:00
Ian Hickson
bf2c46e263 Fix the ignore identifiers (#6876)
I used the wrong identifiers here.
2016-11-15 16:52:58 -08:00
Ian Hickson
9e7e2778d0 Rename "detachChild" to "forgetChild" (#6845)
...to avoid confusion with "detachRenderObject" which is basically
unrelated.
2016-11-15 16:52:52 -08:00
Adam Barth
5801119d2e Update raw keyboard example (#6871)
We now center the body correctly and handle Fuchsia key events. Also, add
support for modifiers.
2016-11-15 14:42:45 -08:00
Ian Hickson
2b84d1ff1b Silence new analyzer warnings (#6866)
See https://github.com/flutter/flutter/pull/6861

This silences all but two of the warnings from https://travis-ci.org/flutter/flutter/builds/176055550

One of the silenced warnings was a genuine code error.

Some of the others were correct but there was no way for the analyzer to know, and I worked around them.

The remainder are problems with the analyzer, specifically https://github.com/dart-lang/sdk/issues/27827 and https://github.com/dart-lang/sdk/issues/27504.
2016-11-15 12:35:50 -08:00
Hans Muller
f496ad055a Fix GridTileBar layout (#6844) 2016-11-15 12:01:27 -08:00
Adam Barth
d8e6de8ec7 Add support for raw key events on Fuchsia (#6754)
See #6631
2016-11-15 10:33:07 -08:00
Ian Hickson
7424a7604a Cross-references (#6860) 2016-11-15 08:39:01 -08:00
Ian Hickson
6c93270d85 FileImage (#6853) 2016-11-14 16:36:39 -08:00
Ian Hickson
ece851d5cd Minor improvements to the render tree dump. (#6831)
Also fixes https://github.com/flutter/flutter/issues/6510
2016-11-14 11:18:46 -08:00
Ian Hickson
df25e4899d Provide a way to override the Material border radius (#6828)
This should help a bit with people trying to make apps that have a
Material feel but don't necessarily exactly fit the Material spec.
2016-11-12 15:09:12 -08:00
Ian Hickson
661543227e Mention visitChildren in RenderObjectElement docs. (#6824) 2016-11-11 21:45:17 -08:00
Chris Bracken
d0ff41ec35 Add accentTextTheme and accentIconTheme to ThemeData (#6808)
These define a TextTheme and IconTheme that contrast with the accent
colour brightness. Also adjust default accentColorBrightness to match
Material spec examples (dark text/icons on teal in Dark theme).

Update material components to use accentTextTheme, accentIconTheme:
* DatePicker selection
* Floating action button icon
* TimePicker selection
* Slider label text
2016-11-10 15:33:02 -08:00
Jason Simmons
ca5e1f3f23 In the semantics tree, do not detach a child if it has already been assigned a new parent (#6773)
Fixes https://github.com/flutter/flutter/issues/6690

Also add a version of the Gallery smoke test that enables semantics
2016-11-10 12:55:56 -08:00
Ian Hickson
bbf98d9c6b SizedBox.expand (#6791) 2016-11-09 23:34:31 -08:00
Ian Hickson
fcd47f84d2 CustomPaint size (#6790) 2016-11-09 20:50:43 -08:00
Ian Hickson
01a8d51022 Clean up abstract node docs (#6786) 2016-11-09 18:15:51 -08:00
Ian Hickson
b9c3871163 Add debug info to offstage renderer (#6789) 2016-11-09 18:10:50 -08:00
Ian Hickson
1f737f5c94 Add a table to the updateChild docs (#6782) 2016-11-09 16:28:35 -08:00
Ian Hickson
49b5701224 Minor fixes (mostly doc consistency) (#6780) 2016-11-09 15:05:56 -08:00
Ian Hickson
0db2fc3fd9 RenderObjectElement docs (#6770) 2016-11-09 13:04:16 -08:00
Chinmay Garde
1939ba12d2 Wire up checkerboarding of raster cache images in the framework and gallery. (#6749) 2016-11-09 11:36:17 -08:00
Ian Hickson
7f182dacb7 A variety of trivial fixes. (#6752) 2016-11-08 15:16:39 -08:00
Ian Hickson
106ff33255 Detailed RenderBox and RenderObject docs (#6745) 2016-11-08 15:16:33 -08:00
Ian Hickson
b9a620694c CircleAvatar docs (#6735) 2016-11-08 14:49:49 -08:00
Matt Perry
b9bff6a912 Only show the keyboard when the user explicitly focuses an Input. (#6713)
Fixes https://github.com/flutter/flutter/issues/6603
2016-11-08 14:14:15 -05:00