Mouad Debbar
e204eb2fca
Space and arrow keys in a text field shouldn't scroll ( #74454 )
2021-01-22 16:39:04 -08:00
Justin McCandless
a8471a61f8
Material Desktop Context Menu ( #74286 )
...
Very simple right-click context menu for Windows and Linux in a Material-esque style.
2021-01-20 16:29:01 -08:00
Justin McCandless
24e195d918
Mac context menu ( #73882 )
...
A very minimal right-click menu for Mac desktop.
2021-01-20 13:18:25 -08:00
chunhtai
6a4808b4ed
Remove unused semantics tap action for readonly textfield and selectable text ( #74066 )
2021-01-15 12:54:03 -08:00
Justin McCandless
d9f3d2e846
Cupertino text selection menu customization ( #73578 )
...
* Making a custom iOS-style text selection menu is now much easier.
* Exposes a new widget for the toolbar, a new widget for the buttons, and a new widget for the layout.
2021-01-13 11:14:14 -08:00
xubaolin
32dc1b7d00
Add [pointerCount] property to Scale Gesture Details ( #73474 )
2021-01-11 19:14:04 -08:00
Justin McCandless
fb3dba74b7
Correct text selection pivot points ( #71756 )
2020-12-14 11:18:05 -08:00
Alex Li
135a8c22b1
Introduce MaxLengthEnforcement
( #68086 )
2020-12-10 07:31:59 +08:00
xubaolin
a12c22b296
Set [InputDecoration.floatingLabelBehavior] default to null ( #70683 )
2020-12-04 11:28:03 -08:00
LongCatIsLooong
df28355b0c
Raw keyboard shortcuts & deletions should not read from _plainText ( #71236 )
2020-12-02 17:13:04 -08:00
Jonah Williams
e5000f6cea
[flutter_tools] Remove usage of --precompiled flag for web tests ( #70977 )
2020-12-01 09:54:01 -08:00
Jonah Williams
cfb63356c3
[flutter_tools] use frontend_server for web test compilation ( #70714 )
2020-11-18 14:55:26 -08:00
Hans Muller
23198d4eef
Revert TextField.adaptive ( #69631 )
2020-11-03 12:28:41 -08:00
LongCatIsLooong
7d539043ba
dont mess with user supplied list ( #69594 )
2020-11-02 13:43:02 -08:00
Greg Spencer
55289324c6
Remove nullOk
in MediaQuery.of
( #68736 )
...
Adds MediaQuery.maybeOf to replace calling MediaQuery.of(context, nullOk: true), and removes the nullOk parameter. Also changes MediaQuery.of to return a non-nullable value, and removes many instances of the ! operator, reducing the possible places where a null dereference could occur.
2020-10-28 07:56:41 -07:00
Daniel Edrisian
d3a8b03574
Adaptive TextField ( #68918 )
2020-10-27 15:27:03 -07:00
Justin McCandless
09dc5599dd
Selecting spaces ( #68227 )
...
When attempting to select a space on mobile, Flutter will try to select the word before the space too, if one exists.
2020-10-27 11:30:07 -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
YeungKC
c706abf075
Fix error cursor position for left and right arrow event after text selection ( #68402 )
2020-10-19 12:42:03 -07:00
Yash Johri
0a130100ac
Updated tests ( #67083 )
2020-10-14 15:22:04 -07:00
Justin McCandless
b93f71f9c8
NNDB TextField tests ( #67696 )
...
Just another nnbd conversion PR.
2020-10-12 09:59:05 -07:00
Hans Muller
890e6ccea6
Replaced obsolete use of FlatButton with TextButton ( #66597 )
2020-09-25 07:31:56 -07:00
Michael R Fairhurst
7f3c9b6bda
Remove unused 'dart:async' imports. ( #65568 )
2020-09-16 14:14:06 -07:00
Mouad Debbar
0d8de393aa
[web] Don't show handles when selection change is caused by keyboard ( #65127 )
2020-09-09 15:40:06 -07:00
Chris Bracken
c0ea00ed3f
Prefer moreOrLessEquals over closeTo ( #64915 )
...
Flutter's `moreOrLessEquals` has a few advantages over `closeTo` from
the `matcher` package:
* It emits the epsilon value in the test result on failure.
* It uses a named parameter for epsilon, which improves readability
at the call site.
* It has a reasonable default for epsilon in cases where something
more specific isn't required.
Using it also has the nice property that it aids in its own discovery
when when people go looking for such functionality in new tests.
This change also includes a couple unrelated whitespace formatting cleanups.
2020-08-30 22:20:16 -07:00
Ming Lyu (CareF)
c2368bdd6f
bug fix for pointer id in test gestures ( #63816 )
2020-08-15 10:41:02 -07:00
Mouad Debbar
d13b56a0cd
Don't move to word edge when tapping with a mouse ( #60177 )
2020-08-05 19:16:06 -07:00
Pierre-Louis
5d854f63a0
Implement customizable cursor height ( #61714 )
2020-07-21 07:36:03 -07:00
Pierre-Louis
0bc4368233
Typo sweep ( #60693 )
2020-07-02 13:08:02 -07:00
Justin McCandless
2a573a32fe
Reland Characters Usage ( #59778 )
...
Use Dart's characters package to fix user-facing grapheme cluster bugs.
2020-06-23 15:28:26 -07:00
Justin McCandless
c105708426
RTL caret position ( #60009 )
2020-06-22 18:58:03 -07:00
Tong Mu
9470b9e2ce
Add material state mouse cursor to TextField ( #59363 )
2020-06-22 18:38:03 -07:00
Jason Simmons
4173881bbf
Fix the paste button label in the new version of the filtered text pasting test ( #59865 )
2020-06-19 12:41:29 -07:00
Christopher Fujino
5cfb16b193
Re-land "Deprecate WhitelistingTextInputFormatter and BlacklistingTextInputFormatter ( #59120 )" ( #59876 )
...
This relands #59120 , which was reverted in #59870 .
2020-06-19 12:03:38 -07:00
Christopher Fujino
0d7ff7a9e7
Revert "Deprecate WhitelistingTextInputFormatter and BlacklistingTextInputFormatter ( #59120 )" ( #59870 )
...
This reverts commit 8665e13801fe6b53a0e67866d2ee6cd5ef2083f4.
2020-06-19 10:52:52 -07:00
Ian Hickson
8665e13801
Deprecate WhitelistingTextInputFormatter and BlacklistingTextInputFormatter ( #59120 )
2020-06-18 18:08:01 -07:00
Justin McCandless
339f0363a6
Reland modernize selection menu appearance ( #59617 )
2020-06-18 16:33:03 -07:00
renyou
a99d146ba9
Revert "Characters Package ( #53381 )" ( #59677 )
...
This reverts commit e0ed12c73a3df00b72af6e5657d35035a76c90db.
2020-06-17 08:39:34 -07:00
Justin McCandless
e0ed12c73a
Characters Package ( #53381 )
2020-06-16 16:53:04 -07:00
Zachary Anderson
f8a4008e41
Revert "Modernize selection menu appearance ( #59115 )" ( #59561 )
...
This reverts commit b3c237ce5465a8befbf0814d36b7013e34c2abe5.
2020-06-16 08:41:22 -07:00
Justin McCandless
b3c237ce54
Modernize selection menu appearance ( #59115 )
2020-06-15 09:40:04 -07:00
Alexandre Ardhuin
4d7525f05c
Opt out nnbd in packages/flutter ( #59186 )
...
* add language version 2.8 in packages/flutter
* enable non-nullable analyzer flag
2020-06-11 14:11:30 +02:00
Nils Reichardt
3e273b14e2
[web & desktop] Hide all characters in a TextField, when obscureText is true on web & desktop ( #56794 )
2020-06-05 15:18:01 -07:00
Tong Mu
60f1aa25d3
Add mouse cursor API to widgets (phase 1) ( #57628 )
...
* Adds default cursor and/or mouseCursor property to a number of widgets.
* Adds `MaterialStateMouseCurrsor`.
2020-05-28 13:16:31 -07:00
Greg Spencer
8ef2915453
Add MediaQueryData.navigationMode and allow controls to be focused when disabled. ( #54919 )
...
This adds a new navigationMode to the MediaQueryData that indicates how focusable controls should behave under different navigation modes, currently with two modes: NavigationMode.traditional, and NavigationMode.directional.
It may seem like focusing a disabled control is not desirable, but this is useful for user interfaces that use DPAD navigation because if a control gets disabled, losing focus is disruptive to the user, and it is difficult to control where the focus will end up unless it is done explicitly.
2020-05-27 15:30:19 -07:00
Justin McCandless
53d7f24521
Fix Web asking for clipboard permissions ( #57324 )
2020-05-19 17:57:04 -07:00
nturgut
32547dcc7e
Revert " Bring back paste button hide behavior 3 ( #57139 )" ( #57286 )
...
This reverts commit 8de07d5527bcdc6b02e43e8efed19219a84bf82e.
2020-05-15 10:42:37 -07:00
Justin McCandless
8de07d5527
Bring back paste button hide behavior 3 ( #57139 )
2020-05-14 11:37:02 -07:00
Jenn Magder
c969b8af7b
Revert "Bring back paste button hide behavior 2 ( #56922 )" ( #56951 )
...
This reverts commit d988226374cda866cfa5336fdbb0d258e0e8ddfb.
2020-05-11 15:28:10 -07:00
Justin McCandless
d988226374
Bring back paste button hide behavior 2 ( #56922 )
...
Unrevert of paste button hides when nothing to paste
2020-05-11 13:23:24 -07:00