- 15 Aug, 2018 1 commit
-
-
Michael Goderbauer authored
With this change you can now create "wrapping" text fields that do not show the new line button: ```dart new TextField( maxLines: null, keyboardType: TextInputType.text, ); ```
-
- 20 Jul, 2018 2 commits
-
-
Norbert Kozsir authored
-
Jonah Williams authored
-
- 19 Jul, 2018 1 commit
-
-
matthew-carroll authored
Added textInputAction parameter to TextFormField that forwards to TextField, added onEditingComplete parameter to TextField that forwards to EditableText, added onEditingComplete parameter to TextFormField that forwards to TextField. (#19397) (#19427)
-
- 14 Jul, 2018 1 commit
-
-
Jonah Williams authored
-
- 05 Jun, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 09 Apr, 2018 1 commit
-
-
Roberto Scaramuzzi authored
* Update text_form_field.dart * Update text_form_field_test.dart * Update text_form_field_test.dart * Update text_form_field_test.dart
-
- 29 Mar, 2018 1 commit
-
-
Hans Muller authored
-
- 22 Mar, 2018 1 commit
-
-
Ian Hickson authored
-
- 14 Mar, 2018 2 commits
-
-
Hans Muller authored
-
Hans Muller authored
-
- 20 Jan, 2018 1 commit
-
-
Hans Muller authored
-
- 03 Jan, 2018 1 commit
-
-
xster authored
-
- 11 Dec, 2017 1 commit
-
-
Fredrik Simón authored
* Expose textAlign on TextFormField Fixes #11404 * Added name to AUTHORS * Added a test for TextFormWidget's textAlign
-
- 29 Sep, 2017 1 commit
-
-
Chris Bracken authored
This patch fixes a collection of issues with widgets involved in text editing: * Fire widget.onChanged on EditableText value change: The value of an EditableText is composed of the text value as well as other editing-related data such as selection-related information. Previously, widget.onChanged() was only called for updates via updateEditingValue(). For pastes via a TextSelectionOverlay, updates are signalled via _handleSelectionOverlayChanged(), which only ever triggered widget.onSelectionChanged(), but not widget.onChanged(). Both updateEditingValue() and _handleSelectionOverlayChanged() perform the value update via _formatAndSetValue(), which is where this patch moves the widget.onChanged() call. * Correctly update TextFormField value on edits via controller: The textual value of a TextFormField exists in two locations: 1. FormField.value, as with all FormFields and subclasses. 2. TextEditingController.value associated with the TextField underlying the TextFormField. Previously, edits to the TextEditingController associated with a TextFormField resulted in updates to the rendered TextField widget, but did not update TextFormField.value. FormField.value is updated via FormField's onChanged function, which is called from the EditableText underlying the TextField underlying the TextFormField. EditableText only fires onChanged when it receives changes from the engine. It does not fire onChanged for changes made to the underlying TextController, since the owner of the TextController is the one making these changes and thus, already aware of them. FormField, however, *does* need to listen to these changes to update its value. * Adds an initialValue parameter to the TextFormField constructor: FormField's constructor already takes an initialValue parameter, which specifies the initial value in the field, which is also the value to which reset() returns the field. Previously, TextFormField took its initial value from the controller value (if a controller was passed in) or the empty string (if not). This had the undesirable effect that calling reset() always resets the value to the current value of the controller... i.e., does nothing. We now take an initial value explicitly.
-
- 18 Jul, 2017 1 commit
-
-
- 13 Jun, 2017 1 commit
-
-
Ian Hickson authored
-
- 28 Apr, 2017 1 commit
-
-
xster authored
* Add a text formatter interface used by EditingText. Provide some default implementations. * self nits * Handle -1 selection offsets * review notes * simplify regular expression * Add whitelisting formatters. Use a custom phone number formatter in text demo. * review notes * not being able to addAll(null) is pretty annoying * review notes * partial tests * Add tests * didn’t end up needing mockito * move to services
-
- 04 Apr, 2017 1 commit
-
-
Adam Barth authored
TextFormField doesn't actually have many properties because it wraps a TextField. Rather than trying to document all the arguments in the constructor, we now refer to the docs for TextField, which explain the parameters in a more readable way. Fixes #7245
-
- 02 Apr, 2017 1 commit
-
-
Adam Barth authored
After this patch, there are three major text input widgets: * EditableText. This widget is a low-level editing control that interacts with the IME and displays a blinking cursor. * TextField. This widget is a Material Design text field, with all the bells and whistles. It is highly configurable and can be reduced down to a fairly simple control by setting its `decoration` property to null. * TextFormField. This widget is a FormField that wraps a TextField. This patch also replaces the InputValue data model for these widgets with a Listenable TextEditingController, which is much more flexible. Fixes #7031
-