1. 02 Aug, 2019 1 commit
  2. 01 Aug, 2019 1 commit
  3. 31 Jul, 2019 1 commit
  4. 30 Jul, 2019 1 commit
  5. 27 Jul, 2019 1 commit
  6. 26 Jul, 2019 1 commit
  7. 27 Jun, 2019 1 commit
  8. 06 Jun, 2019 1 commit
  9. 03 Jun, 2019 1 commit
  10. 15 Mar, 2019 1 commit
    • Justin McCandless's avatar
      Text field height attempt 2 (#29250) · 6d8f5399
      Justin McCandless authored
      Adds the `minLines` and `expands` parameters for controlling text height.  The original PR was reverted, so this one contains a few extra fixes for the tests that were broken.
      6d8f5399
  11. 23 Feb, 2019 1 commit
  12. 01 Feb, 2019 1 commit
  13. 14 Jan, 2019 1 commit
    • Justin McCandless's avatar
      InputDecorator Count Widget (#25095) · de2470ff
      Justin McCandless authored
      * Allow a widget to be specified for the textfield count, and allow no count at all
      
      * Test all possible states for counter and counterText
      
      * Docs for counter
      
      * counter is a function that generates a widget
      
      * Tests use counter as function
      
      * Fix analyze error in docs
      
      * InputDecoration has counter widget, TextField has buildCounter function
      
      * InputDecorator tests expect counter to be widget again and include
      buildCounter
      
      * counter widget example that might actually fit
      
      * Clarify accessiblity concerns in docs
      
      * Include isFocused param for accessibility
      
      * Fix analyze error
      
      * Improve docs per code review
      
      * Rearrange getEffectiveDecoration a bit for clarity
      
      * Fix analyze error about hashValues params
      
      * Clean up docs and redundant code per code review
      
      * Code review doc improvement
      
      * Automatically wrap buildCounter widget in a Semantics widget for accessibility
      de2470ff
  14. 18 Dec, 2018 1 commit
  15. 11 Dec, 2018 1 commit
  16. 08 Nov, 2018 1 commit
  17. 30 Oct, 2018 2 commits
  18. 18 Oct, 2018 1 commit
  19. 16 Oct, 2018 1 commit
  20. 12 Sep, 2018 1 commit
  21. 15 Aug, 2018 1 commit
  22. 20 Jul, 2018 2 commits
  23. 19 Jul, 2018 1 commit
  24. 14 Jul, 2018 1 commit
  25. 05 Jun, 2018 1 commit
  26. 09 Apr, 2018 1 commit
  27. 29 Mar, 2018 1 commit
  28. 22 Mar, 2018 1 commit
  29. 14 Mar, 2018 2 commits
  30. 20 Jan, 2018 1 commit
  31. 03 Jan, 2018 1 commit
  32. 11 Dec, 2017 1 commit
  33. 29 Sep, 2017 1 commit
    • Chris Bracken's avatar
      Improved behaviour for text-editing widgets (#12273) · 85c425ac
      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.
      85c425ac
  34. 18 Jul, 2017 1 commit
  35. 13 Jun, 2017 1 commit
  36. 28 Apr, 2017 1 commit
    • xster's avatar
      Create a text validator/formatter mechanism (#9535) · f65fea8e
      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
      f65fea8e
  37. 04 Apr, 2017 1 commit
    • Adam Barth's avatar
      Defer to TextField in TextFormField docs (#9144) · d88ff907
      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
      d88ff907