5601 Commits

Author SHA1 Message Date
David Shuckerow
9e4c964072
Add animation tests for changes to the FloatingActionButtonLocation (#23677)
* Add more animation tests for rotation

* Test animation progress

* Progress on the tests

* Everything 'works'

* We don't need to guarantee the rotation of the fab as it exits.

* Remove print statement

* Cleanup extra lines

* Remove whitespace
2019-01-17 14:48:28 -06:00
Michael Goderbauer
975ea595e9
Fix missing const analyzer warning (#26716)
Introduced by merging an old PR (https://github.com/flutter/flutter/pull/21157).
2019-01-17 12:23:55 -08:00
Remi Rousselet
649f49d4bf Swap scope with gesture (#21157) 2019-01-17 11:11:35 -08:00
Michael Goderbauer
56039b4ba7
Make getOffsetToReveal work with nested Viewports (#26663)
Fixes #20893, the most-upvoted bug for framework.

A detailed analysis explaining the cause of the bug has been posted at #20893 (comment).
2019-01-17 11:03:07 -08:00
Gazihan Alankus
7e22b5f2c5 Doc fix: SliverChildBuilderDelegate is the lazy one (#26690) 2019-01-17 09:51:50 -08:00
Jonah Williams
fb2467d0af
Add documentation for how to use annotated region (#24989) 2019-01-17 09:30:05 -08:00
Ian Hickson
800a6e1670 Quick fix for tap-to-show-keyboard regression (#26629)
* Fixes Android keyboard bug
2019-01-16 17:30:26 -08:00
Kenzie Schmoll
a172de0159
Send ServiceExtensionToggled event when service extension is set to a value. (#26426) 2019-01-16 12:29:20 -08:00
Kyrel Jerome
a0f58c5e7a Grammatical fix: "places" to "placed" (#26482) 2019-01-16 10:43:29 -08:00
Chris Bracken
9a7b1a73bd
Replace platform check with swtich (#24752)
Generally, we should always use default-less switches for
platform-specific behaviour so we're forced to make a conscious decision
on each instance of such behaviour any time we add support for a new
platform.
2019-01-16 10:31:44 -08:00
MH Johnson
5e8e39723d
[Material] TabBarTheme text style parameters (#26533)
* Add labelStyle + unselectedLabelStyle to TabBarTheme
2019-01-16 13:30:21 -05:00
Michael Goderbauer
e4c8f1b993
3D SemanticsTree (#25670) 2019-01-16 10:29:00 -08:00
Justin McCandless
14faa8d935
Fix rounding error in build tests (#26652) 2019-01-16 09:48:04 -08:00
Michael Goderbauer
b4e9d0a440
Add tests for getOffsetToReveal on RenderSlivers (#26598) 2019-01-16 08:47:37 -08:00
rami-a
f22043e25f
Prevent crash when calling lerp for IconThemeData with null arguments (#26592)
The lerp method for IconThemeData was not doing anything to prevent exceptions when null arguments are used. This change fixes that and adds a test for it.
2019-01-16 11:42:29 -05:00
Hans Muller
14f486685e
Updated AlertDialog content doc (#26613) 2019-01-16 08:35:51 -08:00
Hans Muller
fbedd97682
IconButton backgroundColor doc sample (#26611) 2019-01-16 08:35:34 -08:00
Justin McCandless
105026cd68
Fix descenders cutoff in TextField (#26309)
* Include caret gaps in position calculation to avoid descender cutoff

* Calculate caret offset instead of exposing it

* Test that textfields scroll vertically by full line height

* Only add offset to end of caret to avoid going above 0.0

* Fix and test horizontal vs. vertical scrolling

* CR: docs and top caret offset logic

* Take max instead of assuming caretRect.top is always a full line down

* Always subtract caretOffset from caretTop since caretRect.top can be negative
2019-01-16 08:13:00 -08:00
Chris Bracken
584ef083c7
Replace Android-specific check with switch (#24754)
Generally, we should always use default-less switches for
platform-specific behaviour so we're forced to make a conscious decision
on each instance of such behaviour any time we add support for a new
platform.
2019-01-15 19:42:55 -08:00
Seth Westphal
71a15896d8 Fix error message and other typos (#25126) 2019-01-15 19:22:32 -08:00
Michael Goderbauer
f3f2d5a1bd
Remove TODO, reduce tech debt (#26612)
I fixed this TODO a while ago during my a11y work.
2019-01-15 19:06:07 -08:00
Michael Goderbauer
e8bfa81b70
Roll engine to 5983e34a3c0e1217da7e8bbe9f2fe685048fe259 (#26596) 2019-01-15 19:00:05 -08:00
Gary Qian
fc779c69a7
Add Golden test for background painting order. (#25988) 2019-01-15 19:40:39 -05:00
Ian Hickson
29928a46ed
Support setting the elevation of disabled floating action buttons (#24728)
Previously, a disabled floating action button always had zero
elevation, which looks dumb.

This also fixes the issue whereby highlightElevation was not honoured
on floating action buttons.

This also fixes an issue I found during testing whereby setState was
being called during build when onHighlightChanged fired due to
onPressed becoming null while a gesture is ongoing (which triggers an
onTapCancel synchronously during build).
2019-01-15 15:06:29 -08:00
Chris Bracken
d7458e3da4
Add asserts for @required parameters (#26449)
Adds asserts on required constructor parameters to a transition widgets.
This improves debuggability for those who aren't developing with live
analysis. e.g. when `turns` is not specified in a RotationTransition
constructor:

  package:flutter/src/widgets/transitions.dart: Failed assertion: line 43 pos 15: 'listenable != null': is not true.

becomes:

  package:flutter/src/widgets/transitions.dart': Failed assertion: line 259 pos 15: 'turns != null': is not true.
2019-01-15 10:24:06 -08:00
Amir Hardon
cbff7ca43c
Cleanup temporary catchError. (#26454)
This was added to make sure we don't crash before the engine is rolled
with the system channel API addition and is no longer needed.
2019-01-15 10:13:48 -08:00
Dan Field
f0620f4776
add type parameter back to PageRouteFactory (#26559) 2019-01-15 10:01:37 -08:00
Hans Muller
a152a2097c
Deprecate Scaffold resizeToAvoidBottomPadding, now resizeToAvoidBottomInset (#26259) 2019-01-15 08:16:49 -08:00
Justin McCandless
de2470ffa4
InputDecorator Count Widget (#25095)
* Allow a widget to be specified for the textfield count, and allow no count at all

* Test all possible states for counter and counterText

* Docs for counter

* counter is a function that generates a widget

* Tests use counter as function

* Fix analyze error in docs

* InputDecoration has counter widget, TextField has buildCounter function

* InputDecorator tests expect counter to be widget again and include
buildCounter

* counter widget example that might actually fit

* Clarify accessiblity concerns in docs

* Include isFocused param for accessibility

* Fix analyze error

* Improve docs per code review

* Rearrange getEffectiveDecoration a bit for clarity

* Fix analyze error about hashValues params

* Clean up docs and redundant code per code review

* Code review doc improvement

* Automatically wrap buildCounter widget in a Semantics widget for accessibility
2019-01-14 15:22:42 -08:00
Ian Hickson
567db6f0d4
Improved positioning of leading and trailing widgets in overflowing ListTiles (#24767) 2019-01-14 12:39:43 -08:00
jslavitz
4377083810
Selects a word on force tap (#25683)
* adds force press select word functionality
2019-01-14 10:29:51 -08:00
Ian Hickson
3ee473c587
Make decodeImageFromList mockable (#25864) 2019-01-13 21:02:46 -08:00
Greg Spencer
141d6e1394
Add support for detecting which modifier keys have been pressed on RawKeyboardEvents (#26265)
This adds some functions to the interface for RawKeyEventData and all subclasses that allow the recipient of an event to determine which modifier keys are currently being pressed without needing to know the specific modifier bitmasks for the platform.

Also adds constants for the modifier bitmasks for each platform, for completeness (and because I needed them anyhow to implement the above).

Added tests for the RawKeyEventData subclasses, and modified the raw_keyboard manual test app to show modifier keys being pressed. I also separated the different platform-specific subclasses into separate files.

Fixes #26155.
2019-01-11 13:41:45 -08:00
Dan Field
8af3e480a9
Revert "move analysis_options to package" (#26436)
* Revert "move analysis_options to package (#26244)"

This reverts commit d4d1b29a35d7ab83bae77890ac8f46863adfbd37.
2019-01-11 13:38:02 -08:00
Dan Field
d4d1b29a35
move analysis_options to package (#26244)
* move analysis_options to package
2019-01-10 18:53:01 -08:00
Chris Bracken
88b77a7d0f
Avoid use of ParagraphConstrains const ctor (#26392)
Usages of ParagraphConstraints (from dart:ui) whose constructor could be
const as of flutter/engine#7346 are currently marked //
ignore:prefer_const_constructors in the framework until all
Google-internal embedders have been updated to an engine version that
includes the above change. These were initially updated in engine roll
flutter/flutter#26252, but broke internal embedders.

We should re-enable use of the const constructor in those cases once
internal embedders are updated.

See: https://github.com/flutter/flutter/issues/26390
2019-01-10 17:25:24 -08:00
Michael Klimushyn
5293fef26d
Deprecate the animated image frame cache (#26385)
Disables the cache by default and deprecates the API for setting its
size.

flutter/flutter#26081
2019-01-10 15:07:57 -08:00
Jonah Williams
83af6f48d6
Adds a type parameter to invokeMethod (and additional utility methods) (#26303) 2019-01-10 13:21:03 -08:00
Michael Goderbauer
b13eacc717
Fix Listenable.merge to not leak (#26313) 2019-01-10 12:17:45 -08:00
Sander Dalby Larsen
6c6fdaff81 Added the superellipse (a.k.a. squircle) shape to flutter. (#26295)
* Added the superellipse (a.k.a. squircle) shape to flutter, which is needed to recreate some cupertino components, e.g. buttons in pixel-perfect detail (issue #13914).
2019-01-10 12:17:01 -08:00
MH Johnson
090c3bcd0e
[Material] Bottom app bar theme (#24156)
* [WIP] BAB theme

* [WIP] BAB theme

* Update goldens

* Extract helper function in tests

* Update Goldens version

* Add tests

* [WIP] Hans first round comments

* Added test

* Added docs

* Hans second round comments

* Fixed analyzer error

* Hans third round comments

* ambient

* Change [BottomAppBarTheme.of] to static

* Final doc change
2019-01-10 10:19:35 -05:00
Marco Scannadinari
c486bdb6f5 Add new curve animations to class documentation (#26290) 2019-01-09 14:55:05 -08:00
Tim Sneath
c944d88788
Add link to Flutter brand guidelines (#26257) 2019-01-09 14:52:29 -08:00
Dan Field
75ebce1c0c
Update docs for editable_text (TextField) (#26269)
* update docs for editable_text (TextField)

* typo, clarify behavior when lines > 1
2019-01-09 14:44:42 -08:00
matthew-carroll
517f8dc279
Add consumedScrollExtent to SliverConstraints as reported by Viewport (#24551) 2019-01-09 12:34:54 -08:00
jslavitz
cea4aa9b7b
Teach drag start behaviors to DragGestureRecognizer (#26246)
* the onStart callback will report the location of the pointer where it wins the gesture arena by default instead of the pointer down location. Fixes all tests related to changing this default value.
2019-01-09 10:53:47 -08:00
Ben Konyi
6412f35c5e
Manual engine roll with fixes: (#26252)
7112b72cc2...e5ec3cf3ea

git log
7112b72cc229e05d36716c3d7739885d3ffa72e6..e5ec3cf3ea5ce78c6c3116271601f60d30a799d4
--no-merges --oneline
e5ec3cf3e Dart SDK roll for 2019-01-08
08c95d27a Roll src/third_party/skia 55ff5d3ba881..1337f5b85978 (10
commits) (flutter/engine#7407)
e385f5cbb Roll src/third_party/skia 26d173fee72b..55ff5d3ba881 (12
commits) (flutter/engine#7406)
0f8273b0c Dart SDK roll for 2019-01-07
4036b260a Reset ParagraphBuilder after build() (flutter/engine#7401)
4820cbec4 Dart SDK roll for 2019-01-07
8eccb860d Add onStart hook to FlutterFragmentActivity
(flutter/engine#6719)
f2ea838b3 Roll src/third_party/skia b2fdcbf3033f..26d173fee72b (10
commits) (flutter/engine#7400)
5ca8aadaa Announce in/out of list (flutter/engine#6918)
4487d392d Replace Java code with equivalent, more concise code.
(flutter/engine#7398)
395b7852d Roll src/third_party/skia 46ee3f7a8ff5..b2fdcbf3033f (11
commits) (flutter/engine#7394)
5965f9084 Make `ParagraphConstraints` have const constructor
(flutter/engine#7346)
e02dd416a Roll src/third_party/skia a47eb455360f..46ee3f7a8ff5 (2
commits) (flutter/engine#7390)
f0038b3cc Roll src/third_party/skia 3ac3a4053f86..a47eb455360f (2
commits) (flutter/engine#7389)
2019-01-08 17:59:16 -08:00
Ben Konyi
094edf61db
Fixed typo (#26260) 2019-01-08 16:40:42 -08:00
Michael Goderbauer
51732aee3b
Remove long-deprecated TwoLevelList (#26238) 2019-01-08 14:56:31 -08:00
Hans Muller
c8f72ac596
Force DatePicker value to stay within firstDate and lastDate upon year change (#26239)
* Force DatePicker value to stay within firstDate and lastDate upon year change

* updated per review feedback
2019-01-08 14:17:46 -08:00