4078 Commits

Author SHA1 Message Date
Yegor
eb69a20c0a
fix date/time picker borders (#16240) 2018-04-04 16:39:25 -07:00
Jonah Williams
ae96e81ce4
export RawKeyEvent from RawKeyboardListener (#15956)
Adds an export of the RawKeyEvent type from the RawKeyboardListener library, since it is required by the API
2018-04-04 10:06:10 -07:00
Adam Barth
3ff25c7792
Add _PointerState#toString (#16197)
This method makes it easier to debug issues involving broken pointer
states.
2018-04-04 09:03:56 -07:00
Greg Spencer
7a6a65a597
Adding all the different types of chips, along with their complex behaviors (#16039)
This implements various different chip types: There are now the InputChip, ChoiceChip, FilterChip, ActionChip, and the original vanilla Chip, all of which have different uses. They can be customized in a number of ways. See their docs for more information.

Also fixes #16083
2018-04-03 19:31:08 -07:00
David Shuckerow
68c77e37e2
Add a bottom app bar to the floating action button motion demo. (#16196) 2018-04-03 19:30:14 -07:00
Hans Muller
b8629bab8d
Made Card's margin configurable (#16203) 2018-04-03 17:41:58 -07:00
Greg Spencer
6c896ae1f6
Add AnimatedChildSwitcher widget (#16192)
The AnimatedChildSwitcher widget (originally authored by Hixie), will cross-fade between a new child, and a previous child (or children, if the switch happens faster than the fade finishes).

It's a good candidate for places where a widget will be added/removed from a slot, and you want a nice transition to occur.
2018-04-03 16:27:32 -07:00
Hans Muller
f3c742c8a6
Added BottomAppBar docked FloatingActionButtonLocations (#16167)
* Added BottomAppBar docked FloationActionButtonLocations

* Moved the startTop FloatingActionButtonLocation to the demo

* fixed a typo
2018-04-03 14:25:06 -07:00
Greg Spencer
487e6bc91e
Adding onTapDown and onTapCancel to InkWell (#16190) 2018-04-03 10:59:12 -07:00
Hans Muller
5e9424419e
updated_card (#16187) 2018-04-03 10:35:07 -07:00
Hans Muller
6a080aa950
Fix ExtendedFloatingActionButton width (#16168) 2018-04-03 08:14:06 -07:00
Mikkel Nygaard Ravn
0a4c116683
Add code samples for invokeMethod (#16150) 2018-04-03 16:50:55 +02:00
xster
b397406561
Let CupertinoTabScaffold's tab be programmatically selectable (#16040)
* Let CupertinoTabScaffold's tab be programmatically selectable

* Re-use the tab bar's index instead

* review
2018-04-02 13:53:20 -07:00
Victor Choueiri
68728e9f98 Better error message when TextField is not in a Material (#16147)
Added a call to debugCheckHasMaterial() at the start of TextField's build method.
2018-04-02 11:28:39 -07:00
Hans Muller
f069878618
Update indeterminate LinearProgressIndicator (#16106) 2018-04-02 10:07:12 -07:00
Jason Simmons
b4274ef685
URL encode asset paths to support reserved characters in paths (#16046)
Fixes https://github.com/flutter/flutter/issues/14864
2018-03-29 13:47:35 -07:00
Michael Goderbauer
35a7f43749
Fix FAB Tooltip semantics label (#16072) 2018-03-29 15:37:05 -04:00
najeira
464109c0e7 AppBar shows CloseButton even on custom PageRoute (#15643)
* AppBar accepts custom PageRoute

* remove unused import

* update AUTHORS
2018-03-29 10:36:03 -07:00
Hans Muller
8e97807671
Support for disabling TextField, TextFormField (#16027) 2018-03-29 07:28:22 -07:00
xster
cab8242f27
Revert "Re-enable usage of TransformLayers with text in RenderListWheelViewport (#15625)" (#16042)
This reverts commit 1f5d904182f866102fe40a3e640863f9888783e7.
2018-03-28 18:58:19 -07:00
Stanislav Baranov
c5288c7346
Support for decimal and signed numeric keyboard (#15846)
* Support for decimal and signed numeric keyboard

* Comments

* Rebase.

* Roll engine to dd6f46c485192f4506035088c9065b9f5dbba9ab
2018-03-28 08:32:27 -07:00
Hans Muller
8ca99327f9
Corrected default tab indicator color (#15959) 2018-03-27 13:39:05 -07:00
Greg Spencer
2171fcb882
Address post-submit comments for sliders (#15836)
* Address post-submit comments

* Added dispose protection for the animation controllers.
2018-03-25 00:04:24 -07:00
Greg Spencer
a6d8ca2980
Post submit review changes for chip (#15835) 2018-03-24 17:55:40 -07:00
xster
03683bf638
Add more doc linking the material and cupertino refresh controls (#15842)
* Add more doc linking the material and cupertino refresh controls

* review
2018-03-23 15:10:17 -07:00
Hans Muller
3a93061e9e
Extended Floating Action Button (#15841) 2018-03-23 14:40:18 -07:00
xster
1f5d904182
Re-enable usage of TransformLayers with text in RenderListWheelViewport (#15625)
* Re-enable usage of TransformLayers with text in RenderListWheelViewport

* add test

* linter fix
2018-03-23 13:01:44 -07:00
Greg Spencer
b3b9b2215a
Updating checkmark animation (#15850) 2018-03-23 08:58:29 -07:00
Ian Hickson
fc87097119
Add Form.onChanged, and rename FormState.onChanged (#15405) 2018-03-22 15:56:10 -07:00
Ian Hickson
aba0379dcc
Clean up the existing Navigator API. (#15718)
This is not a grand refactor yet, it's just cleaning up what we have
already, so that people who keep using this API (e.g. dialogs) have
something coherent to deal with.

The major changes are that Navigator and NavigatorState have the same
API now, that most of the examples use `<void>` instead of `<Null>`,
that the navigator observer can see replaces, and that the `settings`
is moved from ModalRoute to Route. I also cleaned up some of the API
documentation.
2018-03-22 13:21:07 -07:00
Hans Muller
3a2e0d9375
Extended ButtonTheme, RoundedRectangleBorder, gallery buttons demo (#15723) 2018-03-22 13:20:18 -07:00
Jonah Williams
88cc977384
Remove package:http from Flutter (#15416)
* use HttpOverrides and dart:io HttpClient in flutter

* add missing package:http dependency

* update flutter packages and remove comment about createHttpClient from flutter_test

* move byte loading logic to common class, move string parsing logic to base class

* addAll doesn't work for a Uint8List

* use bytes.setRange

* undo addition to hello_world

* add newline to end of binding.dart

* and a newline for hello world

* refactor to function and add tests

* address comments on unknown length case

* alignment

* sort alaphabetically

* rename convertResponse to consolidateClientHttpClientResponseBytes.  Add header

* fix alignment in test
2018-03-22 08:21:01 -07:00
Greg Spencer
4141946cae
Creating chips custom renderer, updating visual look. (#15596)
This updates the visual look of the Chip class, so that it scales properly in the face of text scale (and label widget size) changes, and bases its height off of the label widget's height, constraining the other widgets it contains to be the same height.

To do this properly, I had to implement a custom render object that will measure the height of the label, so the guts of this class are basically rewritten.

In addition, to allow the circle avatar to increase in size when the chip does, I added minRadius and maxRadius arguments to it, and I updated its color handling to use the light/dark primary colors of the theme in a smart way instead of just using black and white.

Updated and added tests.
2018-03-21 21:11:55 -07:00
Greg Spencer
30adac1ac8
Updating example for MultiChildLayoutDelegate (#15597) 2018-03-21 18:08:56 -07:00
Ian Hickson
f2ffc8de79
Fix RTL icons (#15095) 2018-03-21 17:58:07 -07:00
xster
feadfd2e40
Cupertino pull to refresh part 1: sliver and a simple indicator widget builder (#15324)
* Gallery scaffolding

* Started RenderSliver

* demo and initial hookup

* Cleaned up demo more and scaffolding basic sliver->widget communication structure.

* works

* states and default indicator building works

* start adding docs

* added an alignment setting optimized the sliver relayout mechanism

* tested a default bottom aligned sized indicator

* Added a bunch of tests

* more fixes and more tests

* Finished the tests

* Add docs

* Add more doc diffing wrt material pull to refresh

* Mention nav bar synergy

* add more asserts

* review 1

* Fix mockito 2 / dart 2 / strong typed tests

* review

* Remove the vscode config

* review
2018-03-21 17:27:58 -07:00
xster
fcf0941417
Add more docs and examples for implementers of RenderSliver (#15419)
* Add more docs and examples for implementers of RenderSliver

* add more typical scenarios to describe scrollOffset

* review

* tweak a word
2018-03-21 17:26:45 -07:00
Keenan
d89deb79d3 Fix call on null when interpolating gradient stops (#15656)
Also adds test for interpolating gradient stops.
2018-03-21 16:54:14 -07:00
Hans Muller
4d32c085ed
InputDecorator should clip fill color to its border (#15795) 2018-03-21 14:38:06 -07:00
Alexandre Ardhuin
217b2bdaa1
add new lints of linter-0.1.44 and enable unnecessary_parenthesis (#15585) 2018-03-21 07:10:14 +01:00
Jonah Williams
d518bd2dc8
Pass shadowColor param to SceneBuilder (#15714)
* pass shadowColor param to SceneBuilder

* add doc comment and diagnostic node for shadowColor

* Add missing shadowColor param
2018-03-20 21:05:28 -07:00
Jacob Richman
4e5acef664
Make the inspector handle widgets with non-invertible transforms gracefully. (#15761) 2018-03-20 16:38:19 -07:00
Alexandre Ardhuin
cc1cf9e12a
apply upcomming lint avoid_renaming_method_parameters (#15526) 2018-03-20 12:53:41 +01:00
Michael Goderbauer
619ebd67a9
Support password fields for a11y (#15497)
* Support password fields for a11y

* rename to obscured

* Roll engine to c3ab0c9143029f0267a05b99effbfbd280a4901b
2018-03-20 00:26:10 -07:00
xster
3890af64d0
Add debug disable flags for various performance affecting layers (#15548) 2018-03-19 17:51:17 -07:00
Jonah Williams
27ac523ea0
Provide an initial rotation of the ExpansionIcon if isExpanded = true on initState (#15657)
* rotate expansion icon fully if initial state expanded = true

* add test case for initially expanded

* remove unused import

* Update expand_icon_test.dart

add linebreak

* import dart:math as math
2018-03-19 17:27:34 -07:00
Ian Hickson
4a2217b3d2
Improve documentation regarding padding for dialogs. (#15399) 2018-03-19 16:42:50 -07:00
Ian Hickson
da27d674a4
Move dialogs when keyboard pops up (#15426)
Fixes #7032
2018-03-19 15:52:25 -07:00
Greg Spencer
10fe2056f3
Add a slider demo, and a text theme for SliderThemeData (#15620)
This adds a slider demo with a custom theme to the gallery.

In the process of adding this, I decided to add a text theme to the SliderThemeData, since it's a pain to change the text style on the value indicator otherwise.
2018-03-19 14:50:29 -07:00
Yegor
9c49255f3e
a11y: remove SemanticsSortOrder; sort locally only; semanticsOwner post-test check (#15537)
* a11y: remove SemanticsSortOrder; sort locally only; semanticsOwner post-test check

* update accessibility test framework

- default nextNodeId/previousNodeId to -1
- stop treating null as opt-out from value testing
- add `id`, `TestSemantics.root`, and `tags` to the suggested code in the TestSemantics failure message
- fix a small bug with raw string escaping
- update all tests accordingly

* fix sortKey doc

* prefer const over final
2018-03-18 22:18:52 -07:00