6758 Commits

Author SHA1 Message Date
Daniel
4c2c17986a CupertinoDialogAction is missing super call (#42924) 2019-10-23 19:30:01 -07:00
Jonah Williams
c9ec26ee29
Revert "[Chip] Make sure InkResponse is in the foreground on delete for chips with background color (#41463)" (#43391)
This reverts commit 588275e179379c957c4b7acf5cea1d2d1f2d6ce0.
2019-10-23 18:11:47 -07:00
Per Classon
588275e179
[Chip] Make sure InkResponse is in the foreground on delete for chips with background color (#41463)
* Make sure InkResponse is visible on delete for chips with background color set

* Override computeDistanceToActualBaseline in layout builder
2019-10-23 17:55:46 -07:00
Jonah Williams
ed36fe5ddd
Revert "Add focus nodes, hover, and shortcuts to switches, checkboxes, and radio buttons. (#43213)" (#43367)
This reverts commit 900067207e50622c119639e103f77ea6e2da68ad.
2019-10-23 12:29:58 -07:00
Greg Spencer
900067207e
Add focus nodes, hover, and shortcuts to switches, checkboxes, and radio buttons. (#43213)
In order to enable keyboard navigation to more controls, I've added focus nodes to switches, checkboxes, and radio buttons. In addition, this change enables mouse hover over these controls.

- Added tests for focus, hover, and shortcut activation for Checkbox, Radio, and Switch.
2019-10-23 11:22:22 -07:00
Tianguang
320a933d9e
Fix chip ripple bug — No longer two ripples (#42779)
* Fixed chip ripple.

* Fixed chip ripple. All tests passed.

* Fix one minor detail.

* Fixed reference box.

* Playing around 2.

* Added tests for chip ripple.

* Reverting print-debugging statements

* Remove extra blank line.

* Fixed chip ripple.

* Remove commented code.

* Reconciles with upstream/master.

* Remove print-debugging statement.

* Remove empty line.

* Edit comments.

* Edit style and comments.

* Edit style.

* Fix style and capitalization.

* Return bool.

* Edit style.

* Use getMaterialBox instead of Material.of(...).

* Experiment 3.

* Revert.

* Using tester.pump instead of pumpFrames

* Delete pumpFrames.

* Edit comments.
2019-10-23 11:21:45 -07:00
Jonah Williams
c896ab74a6
skip failing web test to make build green(#43296) 2019-10-22 16:55:48 -07:00
Albertus Angga Raharja
6c04a2a1bd
Properly throw error when CupertinoPageRoute builder returns null (#42602) 2019-10-22 14:24:29 -07:00
Shi-Hao Hong
56f9c950d8
ButtonBar aligns in column when it overflows horizontally (#43193)
* Custom layout for ButtonBar column when it overflows horizontally
2019-10-22 12:12:10 -07:00
Shi-Hao Hong
547b86a91f
[Android 10] Activity zoom transition (#41935)
* Android 10 zoom transition
2019-10-22 12:09:03 -07:00
Kate Lovett
3a3939a7fa
Revert "Skia Gold Support for Local & PreSubmit Testing in package:flutter (#40710)" (#43227)
This reverts commit 8df0d6556dd5ce5931fe79c8b177d7930d188c1f.
2019-10-21 17:31:54 -07:00
Kate Lovett
8df0d6556d
Skia Gold Support for Local & PreSubmit Testing in package:flutter (#40710) 2019-10-21 16:45:56 -07:00
Kate Lovett
83878683c0
Re-landing SliverAnimatedList (#42485) 2019-10-21 16:44:55 -07:00
Tong Mu
1c535de7e0
Soften layer breakage (#42953)
* Replace hard break of Layer.find/All with findAllAnnotations
* Deprecate findAll
2019-10-18 16:40:42 -07:00
Edman P. Anjos
faa514fc24 Quick fix on material dialog docs (#42968) 2019-10-18 15:43:04 -07:00
Aditya Sharma
b6c865ff9c Fix typo (#42922) 2019-10-18 15:42:28 -07:00
Erick (CptBlackPixel)
12b7b08da5 Reading deviceId for RawKeyEventDataAndroid event (#42235)
This PR adds a new property on RawKeyEventDataAndroid to hold the deviceId from which that event was generated. The deviceId is been sent from the engine on the changes from this PR: flutter/engine#12958

With this, we will be able to identify from where the event came from, adding the ability to support local multiplayer games, with multiple gamepads.
2019-10-18 12:32:21 -07:00
Greg Spencer
560873af92
Wire up canRequestFocus and skipTraversal in FocusScopeNode (#43013)
This adds a canRequestFocus and skipTraversal argument to FocusScope and FocusScopeNode, so that a scope can prevent being traversed.

This allows a fix for a problem in the gallery where the focus while traversing the list of items would sometimes appear to disappear, since it would be focusing things that were in the backdrop that were part of the tree, but were not visible.

Related Issues
Fixes #42955
2019-10-18 12:31:15 -07:00
Greg Spencer
df76354488
Add a Focus node to the DropdownButton, and adds an activation action for it. (#42811)
This adds a Focus node to the DropdownButton widget, allowing it to receive keyboard focus, and to show a focus highlight. In addition, I added the ability to activate the dropdown using the "enter" key binding (which is bound to ActivateAction in the WidgetsApp).

Related Issues
Fixes #42646
Fixes #43008
Fixes #42511
2019-10-18 12:30:40 -07:00
Michael Goderbauer
ddca78b4b7
Fix memory leak in TransitionRoute (#42777) 2019-10-17 15:51:45 -07:00
Jaumard
1faf6a9a89 create gesture recognizers on attach and dispose on detach to avoid leaks (#42076) 2019-10-17 15:48:20 -07:00
Jonah Williams
bc396d1b5c
Add onVisible callback to snackbar. (#42344) 2019-10-17 15:12:25 -07:00
Greg Spencer
a7aa66164e
Re-implement hardware keyboard text selection. (#42879)
This re-implements keyboard text selection so that it will work on platforms other than Android (e.g. macOS, Linux, etc.).

Also, fixed a number of bugs in editing selection via a hardware keyboard (unable to select backwards, incorrect conversion to ASCII when cutting to clipboard, lack of support for CTRL-SHIFT-ARROW word selection, etc.).

Did not address the keyboard locale issues that remain, or add platform specific switches for the bindings. All that will need some more design work before implementing them.

Related Issues
Fixes #31951
2019-10-17 15:11:44 -07:00
Shi-Hao Hong
3dc8898e10
Revert "Default colorScheme data in ButtonThemeData (Fix for #38655) (#39627)" (#42854)
This reverts commit 19899db2234af00bacfca263b628f50dd562a520.
2019-10-17 15:07:42 -07:00
Hans Muller
0a7e605632
Support AppBars with jumbo titles (#42936) 2019-10-17 15:01:41 -07:00
Greg Spencer
3afdd08af4
This disables the up/down arrow focus navigation in text fields in a different way. (#42790)
In #42533, I disabled the up/down arrows for focus navigation in text fields, but we thought of a better way to do it, so this is that better way.

This change reverts the other change, and instead it tests the context of the node in the action to see if it's an EditableText node. If so, then it doesn't do the navigation action.
2019-10-17 15:01:22 -07:00
Gary Qian
3bbf54d79f
Reland "Expose API for resizing image caches #41415" (#42785) 2019-10-16 14:15:13 -07:00
Yegor
86f069f1c0
Add most of the widget tests; add more web test shards (#42807) 2019-10-16 09:18:44 -07:00
creativecreatorormaybenot
a665393a0d Fix Tooltip implementation of PopupMenuButton (#42613)
* Fix tooltip not showing when PopupMenuButton.child was non-null
2019-10-16 09:01:24 -07:00
Yegor
21a18fbe16
enable rendering rests on the Web (#42773) 2019-10-15 15:25:47 -07:00
Jason Simmons
fb33b7a1b8
Use placeholder dimensions that reflect the final text layout (#42558)
The _computeChildren[Width/Height]With[Min/Max]Intrinsics methods in
RenderParagraph overwrite the text painter's placeholder dimensions
in order to compute potential widths and heights for the paragraph.

The placeholder dimensions should be restored to the values computed by
_layoutChildren before painting the text.
2019-10-15 10:17:52 -07:00
Shi-Hao Hong
0821b759f5
Typo fixes (#42688) 2019-10-15 10:06:50 -07:00
Jonah Williams
7f8e89b5dc
Revert "Expose API for custom image decode and cache sizes (#41415)" (#42764) 2019-10-15 08:42:55 -07:00
Gary Qian
b857632306
Expose API for custom image decode and cache sizes (#41415) 2019-10-15 00:07:32 -07:00
Luiz França
1ea6a38fa7 Adding thumb color customisation functionality to CupertinoSlider (#42563) 2019-10-14 23:31:05 -07:00
Yegor
3bc3b323c4
Reland: fix and add painting web tests (#42689) 2019-10-14 21:22:44 -07:00
Greg Spencer
134ac429cf
Optimize focus operations by caching descendants and ancestors. (#42683)
This optimizes certain paths in the FocusManager, FocusNode, and FocusScopeNode classes in order to fix a regression in stock_animation_open_first_frame_average when I added more focus nodes to the tree to do focus traversal.

Mainly I removed some remaining sync* iterators, and also started caching the computation of descendants and ancestors, since those are iterated over fairly often.

This improves stock_animation_open_first_frame_average by about 2.8% overall (so about half of a 4.9% regression, both averaged over 10 runs).

Addresses #42564
2019-10-14 18:50:38 -07:00
Greg Spencer
6b2cc85546
Disable arrow key focus navigation for text fields (#42533)
This disables the arrow key focus navigation for text fields. This was non-standard behavior for text fields, although it remains useful for other kinds of controls.

Fixes #42259
2019-10-14 18:50:05 -07:00
Yegor
163be41d80
Revert "Fix and enable painting tests on the Web (#42546)" (#42687)
This reverts commit 13a1b1e3b9b58e7687e1bea5fac0452d52b48621. It broke the build.
2019-10-14 15:14:16 -07:00
Yegor
13a1b1e3b9
Fix and enable painting tests on the Web (#42546)
fix and enable painting tests on the Web
2019-10-14 14:34:15 -07:00
Tong Mu
ebde5e253f
Change modal barrier to dismissing on tap up (#42253)
* Change modal barrier to tap up

* Verify dismiss happen at release
2019-10-14 14:19:18 -07:00
Greg Spencer
e2c5fd6c24
Fix route focusing and autofocus when reparenting focus nodes. (#42554)
This fixes a problem with reparenting of focus nodes where it would remove the node from the scope's focused children when reparented, even if it was being reparented to another place under the same scope. This only occurred if the scope in question didn't have focus.

This caused nodes to not get autofocused when they were a child of another node within the scope, and were reparented, and then the scope was given focus (as when a route is pushed).

This keeps the node in the scope's child list where it was if the node is reparented under a parent within the same scope.

- Added a test that tries to autofocus a TextField when the route is pushed and there is another 
  FocusNode above the text field. This was how this was first noticed: the autofocus got ignored in 
  this configuration.

- Added a test to focus_manager_test that tests for the specific case of reparenting a node when 
  it's in the focused children of the scope.
2019-10-14 12:32:06 -07:00
Darren Austin
a49470556c
Update BottomAppBar to use elevation overlays when in a dark theme (#41864)
* Updated the BottomAppBar to use elevation overlays when a dark theme is used.

* Moved the code for calculating the overlay color to a new utility
ElevationOverlay class and made it private by not including in the material package.
2019-10-14 11:02:15 -07:00
Tjong Anthony
dd43da71fe Add isDismissible configuration for showModalBottomSheet (#42404)
* Allow showModalBottomSheet to present bottom sheet that is not dismissible by tapping on the scrim

* Add guards, improve styling and tests for BottomSheet
2019-10-14 10:00:00 -07:00
Alexey Ivanov
8cc9a53ee3 Improve routers performance (#42526) 2019-10-14 09:25:00 -07:00
Justin McCandless
e7ffac2d67
Fix typo in docs: EdgeInserts->EdgeInsets (#42445) 2019-10-14 08:45:57 -07:00
Keshava Muraari
19899db223 Default colorScheme data in ButtonThemeData (Fix for #38655) (#39627)
* Set default colorScheme for ButtonThemeData
2019-10-14 08:40:02 -07:00
Greg Spencer
dee7583908
Only dismiss dropdowns if the orientation changes, not the size. (#42482)
This changes the DropDownButton so that instead of dismissing itself when any metrics change occurs, it only dismisses itself when the orientation changes.

This gets around the fact that we can't currently have a dropdown and a text field on the same page because the keyboard disappearing when the dropdown gets focus causes a metrics change, and the dropdown immediately disappears when activated.

It still will cause the keyboard to jump up and down between controls, but that's a larger issue. At least now we can use the two together again.
2019-10-14 08:00:11 -07:00
chunhtai
9423a01204
fix flutter error report correct local widget (#41224) 2019-10-13 18:41:22 -07:00
Dan Field
de499c2a93
Gradient transform (#42484) 2019-10-11 13:40:16 -07:00