4716 Commits

Author SHA1 Message Date
Yegor
eb69a20c0a
fix date/time picker borders (#16240) 2018-04-04 16:39:25 -07:00
Jonah Williams
5125c43247
re-enable verify only test failure and update deps. (#16090)
* re-enable verify-only failing test for out of sync deps and update deps to latest version
2018-04-04 10:52:46 -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
Anatoly Pulyaevskiy
78434580d2 Upgrade quiver to 0.28.1 in flutter_test to fix usage of Maps (#16132) 2018-04-02 22:26:49 -07: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
Jonah Williams
69f0c839d2
Address comments from #5714 (#15886)
* add simple test case for passing shadow color through physical layer

* Update physical_model_test.dart

add newline
2018-03-29 11:05:03 -07: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
Alexander Aprelev
bffae21571
Again move mockito to 300plus2 (#15981)
* Revert "Revert "Move mockito to 3.0.0-alpha. (#15949)" (#15979)"

This reverts commit e59651f925917ed44a9bf27c37e80fc9992c0890.

* More thenReturn to thenAnswer when mocking Futures

* Revert "More thenReturn to thenAnswer when mocking Futures"

This reverts commit 194d2cf41754ad171efd6bb5898cf73bce5a75ab as we are reverting engine roll.

* Revert "Revert "More thenReturn to thenAnswer when mocking Futures""

This reverts commit 52c9e96b304b220f66d78a252fccea0c8e0ef24c.

* Add dependency override

* Fix issue
2018-03-28 12:07:12 -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
Alexander Aprelev
e59651f925
Revert "Move mockito to 3.0.0-alpha. (#15949)" (#15979)
This reverts commit a7e6225820719eec08ae3c79ce73ebeb8ec33523 as there are failing tests.
2018-03-27 10:38:20 -07:00
Alexander Aprelev
a7e6225820
Move mockito to 3.0.0-alpha. (#15949)
* Move mockito to 3.0.0-alpha.

This is needed so it matches mockito version used internally.

* Pick up +2 for the fixes

* Fix whenReturn in fuchsia_remote_debug_protocol

* more thenReturn becomes thenAnswer

* more thenReturn becomes thenAnswer

* more thenReturn becomes thenAnswer
2018-03-27 10:05:16 -07:00
Zachary Anderson
d15cc57b7f
[fuchsia] Fix package/flutter BUILD.gn deps (#15951) 2018-03-26 14:03:31 -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
Sam Rawlins
2eebf6a0f1 Remove tear-off mocking in refresh_test (#15869)
* Remove tear-off mocking in refresh_test

* Comments

* Analyzer fix

* Final final final final mushroom mushroom!

* Fix for Dart 1 AND Dart 2 semantics; anonymous closure over tear-off

* Final final
2018-03-23 18:19:50 -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
Andrew Davies
72fd020a24
[fuchsia_remote_debug_protocol] Adds the fuchsia remote debug protocol package.
Adds a package that will support connecting to and debugging devices with multiple instances of the Dart VM, and operate on multiple Isolates and Flutter Views.

Currently supports connecting to all existing Dart VMs and extracting information about all Flutter Views running across each VM.
2018-03-22 17:19:02 -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
Jason Simmons
339e65d839
Remove an error that is caught at compile time in Dart 2 (#15797) 2018-03-21 12:58:13 -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