7356 Commits

Author SHA1 Message Date
Michael Goderbauer
95563ff197
Make WidgetsLocalizations.of non-nullable (#69055) 2020-10-27 09:16:41 -07:00
Justin McCandless
291ee94506
AutocompleteCore (#62927)
A new widget that chooses an item from a list based on text input. Just the core widget, with Material and Cupertino versions to come.
2020-10-27 08:58:52 -07:00
Jonah Williams
4b017b6220
remove unnecessary null aware operator (#69107) 2020-10-27 07:24:27 -07:00
Michael Goderbauer
9fb1c521b1
InheritedTheme updates (#69050) 2020-10-27 06:57:03 -07:00
Shi-Hao Hong
d50bfd5f66
Fix null issue with dynamically updating from zero tabs for TabBar (#69005) 2020-10-27 06:52:04 -07:00
Michel Feinstein
60a58ab780
Update form.dart (#68968) 2020-10-27 06:47:04 -07:00
xubaolin
b99443c7ff
Apply Desktop specs for Tooltip (#68681) 2020-10-27 06:42:03 -07:00
Daniel Edrisian
e818c47059
Added CupertinoSearchTextField (#68074) 2020-10-27 06:37:03 -07:00
Michel Feinstein
e949ff54af
Error on FocusTraversalGroup or Focus docs (#68981) 2020-10-26 16:56:12 -07:00
chunhtai
6cfb86fbcb
Fix crash if update pages right after a navigator pop (#68923) 2020-10-26 16:50:54 -07:00
Michael Goderbauer
27e1efc159
Delay Route disposal until OverlayEntries are unmounted (#68913) 2020-10-26 16:22:37 -07:00
Yegor
7a10b46ee0
Print errors in all build modes (#69046) 2020-10-26 15:57:02 -07:00
MH Johnson
70aa1227c2
[Material] Fix BottomNavTheme.showSelectedLabels bug (#67342) 2020-10-26 14:47:02 -07:00
Alexandre Ardhuin
17cdf5559d
enable unnecessary_string_escapes and use_raw_strings (#68302) (#69025) 2020-10-26 12:42:05 -07:00
Justin McCandless
b76253b60a
minScale docs reference the need for a larger boundaryMargin when scaling below 1.0 (#68494) 2020-10-26 08:42:04 -07:00
Justin McCandless
c2bb928981
Proper light/dark colors, and test that text is not color of background (#67679) 2020-10-26 08:37:03 -07:00
Justin McCandless
b9195d807c
Revert "change TextEditingController.clear() behavior (#68775)" (#68920)
This reverts commit 95909c2a04ef62cc72aab61ac26157b8a8ad7a20.
2020-10-26 08:03:09 -07:00
Roc Boronat
8d6ba3ebe9
Fix a typo: "Its weight" instead of "It's weight" (#68883) 2020-10-23 14:17:04 -07:00
Yash Johri
f3562c6f1d
[SwitchListTile and CheckboxListTile] Adds selectedTileColor property (#68358) 2020-10-23 14:07:05 -07:00
Justin McCandless
0c63d63b1f
InteractiveViewer constrained docs (#68327) 2020-10-23 14:02:03 -07:00
Michael Goderbauer
6cb6eef615
Make Material/CupertinoLocalizations non-nullable (#68807) 2020-10-23 09:12:42 -07:00
Cyp
45e02daf22
Correctly handle centerSlice with resoultion-aware assets. (#68325) 2020-10-22 21:57:03 -07:00
Jonah Williams
b25ce5b16c
Revert "Fix a multiple pointers bug (#68587)" (#68841)
This reverts commit bde85ea3bb3e80c1294c6d084eb5f9804867be8f.
2020-10-22 19:16:08 -07:00
xubaolin
bde85ea3bb
Fix a multiple pointers bug (#68587)
* Fix mutiple pointers bug

* Add unit test case

* Remove unnecessary map clone
2020-10-22 16:09:47 -07:00
xubaolin
95909c2a04
change TextEditingController.clear() behavior (#68775)
Fixes a bug where keyboard capitalization mode was exited when pressing clear.
2020-10-22 15:56:26 -07:00
Kate Lovett
8e8f61856a
Fix overscroll edge case that puts NestedScrollViews out of sync (#68644) 2020-10-22 15:37:06 -07:00
YeungKC
c5c2b24a07
Fix floating behavior of long label and outline input border (#68727)
Corrects the space available to the label in an outlined text field
2020-10-22 15:36:06 -07:00
Alexander Brusher
099ae9b417
Re-enables tests previously failing due to new semantics flag. (#66916) 2020-10-22 15:32:03 -07:00
xubaolin
1bd661f4d4
fix a widgetspan hittest bug (#68694) 2020-10-22 14:27:04 -07:00
Ian Hickson
6a434ab9ec
Fix grammar and writing style for some of the Router documentation (#68513) 2020-10-22 14:22:09 -07:00
stuartmorgan
3da995adec
Handle backspace in text fields (#68812)
Currently the framework handles delete, but not backspace, so embeddings
all have to implement backspace handling themselves. This eliminates
that inconsistency and allows simplified code in embeddings by adding
backspace handling.

It also fixes a bug uncovered in the delete handling where deleting a
selection would also delete the next character after the selection.
2020-10-22 13:51:07 -07:00
Dan Field
4af674285b
Move service extension to correct binding so images are repainted after enabling/disabling, update test (#68793)
* Move service extension to correct binding so images are repainted after enabling/disabling, update test

* Update binding.dart
2020-10-22 13:34:21 -07:00
puelo
24d3999783
Generate RawKeyEvents for iOS 13.4+ (#65193)
* Added RawKeyEvent support for iOS

* Removed unused remnant

* added some missing keys

* Removed trailing whitespaces

* commit for build

* Added mapping names

* Made iOS keycodes generatable and collectable

* Fixed naming and formatting issues

* fixed raw_keyboard_test
2020-10-22 13:33:51 -07:00
chunhtai
6cab3f6008
fix simple dialog introducing additional node for semantics label (#68804)
* fix simple dialog introducing additional node for semantics label

* add test
2020-10-22 13:33:17 -07:00
Michael Goderbauer
91478d96a8
Do not instantiate intermediate tabs during transition (#68124) 2020-10-22 13:32:47 -07:00
Jaime Blasco
52c715fe43
Add textSelectionControls to TextField etc. (#66785)
Enables custom text selection menus by allowing selectionControls to be passed to TextField et. al.
2020-10-22 13:31:51 -07:00
Jacob Richman
0884236504
Fix assert due to VSCode passing in an isolateId as well as the expected args to setPubRootDirectories. (#68721) 2020-10-21 12:13:10 -07:00
Michael Goderbauer
42f3709a5a
Sound null safety for framework and flutter_test (#68642) 2020-10-21 10:09:11 -07:00
Justin McCandless
955e07461b
Revert "Fix text field label width on outline input border (#67736)" (#68672) 2020-10-21 08:52:03 -07:00
Zachary Anderson
cbcd1321ed
Revert "enable unnecessary_string_escapes and use_raw_strings (#68302)" (#68714)
This reverts commit ae06c19a371cbf8eb9de84d0c3d880c7cd101683.
2020-10-21 08:16:13 -07:00
Alexandre Ardhuin
ae06c19a37
enable unnecessary_string_escapes and use_raw_strings (#68302) 2020-10-21 16:34:24 +02:00
Jacob Richman
e5d7bab115
Fix null safety error in inspector service extensions taking a variable number of args. (#68661)
* Fix null safety error in inspector service extensions taking variable numbers of args.

Fixes https://github.com/flutter/flutter/issues/68627.
Also fix all inspector tests that do not rely on golden image functionality
so that they run with --enable-experiment=non-nullable. This verifies there
is test coverage to ensure there isn't a regression.

* Remove uses of dynamic.
2020-10-20 18:27:55 -07:00
YeungKC
c706abf075
Fix error cursor position for left and right arrow event after text selection (#68402) 2020-10-19 12:42:03 -07:00
Greg Spencer
8c03ff8c1d
Mark keys that match a shortcut, but have no action defined as "not handled". (#67359)
- - When I added notification of key events before processing them as text, it made it so that shortcut key bindings like the spacebar would prevent spaces from being inserted into text fields, which is obviously not desirable (and so that change was reverted). At the same time, we do want to make it possible to override key events so that they can do things like intercept a tab key or arrow keys that change the focus.

This PR changes the behavior of the Shortcuts widget so that if it has a shortcut defined, but no action is bound to the intent, then instead of responding that the key is "handled", it responds as if nothing handled it. This allows the engine to continue to process the key as text entry.

This PR includes:

- Modification of the callback type for key handlers to return a KeyEventResult instead of a bool, so that we can return more information (i.e. the extra state of "stop propagation").
- Modification of the ActionDispatcher.invokeAction contract to require that Action.isEnabled return true before calling it. It will now assert if the action isn't enabled when invokeAction is called. This is to allow optimization of the number of calls to isEnabled, since the shortcuts widget now wants to know if the action was enabled before deciding to either handle the key or to return ignored.
- Modification to ShortcutManager.handleKeypress to return KeyEventResult.ignored for keys which don't have an enabled action associated with them.
- Adds an attribute to DoNothingAction that allows it to mark a key as not handled, even though it does have an action associated with it. This will allow disabling of a shortcut for a subtree.
2020-10-19 11:26:50 -07:00
Kate Lovett
8df0c5e158
Deprecate old SnackBar methods (#67947) 2020-10-19 10:17:03 -07:00
Ayush Bherwani
ca84cc235c
[MergeSemantics] added code snippet (#68123) 2020-10-19 08:17:03 -07:00
Xavier Chrétien
f26fbb6bdd
Set slider semantics flag for sliders (#68019) 2020-10-19 08:12:03 -07:00
nt4f04uNd
4a32e52460
SpringDescription parameter for the AnimationController fling method (#65057) 2020-10-17 20:32:03 -07:00
xster
3302a12b20
Let Flutter SDK use cupertino_icons 1.0.0 (#65087) 2020-10-16 22:36:01 -07:00
Hamdi Kahloun
7b04435a16
Date Picker jumps back to initialDatePickerMode after day selection (#67926)
Date Picker jumps back to initialDatePickerMode after day selection.
2020-10-16 13:31:20 -07:00