1. 21 Aug, 2019 1 commit
  2. 16 Aug, 2019 1 commit
    • Greg Spencer's avatar
      Automatic focus highlight mode for FocusManager (#37825) · a11d7314
      Greg Spencer authored
      This adds a FocusHighlightMode to the FocusManager that switches based on the type of input that has recently been received. The initial value is based on the platform, but is updated as soon as user input is received. There is also a FocusHighlightStrategy enum so that the developer can change the strategy to a fixed value if needed.
      
      The default is to automatically detect the mode based on the last type of user input. If they use a mouse or keyboard, it shows the focus highlights. If they use a touch interface, then the highlights disappear. This is consistent with the way that Android and Chrome work. The controls still receive focus, only the display of the highlight changes.
      
      Text fields show the focus highlight regardless of the focus highlight mode.
      a11d7314
  3. 01 Aug, 2019 1 commit
    • Tong Mu's avatar
      Split Mouse from Listener (#36217) · 5bb8d8fc
      Tong Mu authored
      - Splits on{Enter,Hover,Exit} from Listener to MouseRegion. Deprecated API is kept for compatibility.
      - Splits on{Enter,Hover,Exit} from RenderPointerListener to RenderMouseRegion.
      5bb8d8fc
  4. 25 May, 2019 1 commit
    • Chris Bracken's avatar
      Americanise spellings (#33323) · 156b4220
      Chris Bracken authored
      Updates documentation and non-public API to use American spellings for
      consistency with the rest of the codebase.
      
      No changes to behaviour... other than how it's spelt.
      156b4220
  5. 18 May, 2019 1 commit
  6. 16 May, 2019 1 commit
    • Greg Spencer's avatar
      Fix Focus.of to not find FocusScope nodes. (#32826) · 3c16cf6a
      Greg Spencer authored
      Until this change, Focus.of would return a FocusScopeNode if it found a FocusScope widget. This isn't really all that useful, and can easily lead to bad situations where many widgets think that the scope they are in (or the root scope!) is their indication of being focused.
      
      This changes Focus.of to throw an exception if it doesn't find a Focus widget before reaching the nearest FocusScope widget, or the root of the widget hierarchy.
      
      It also adds a nullOk optional bool to Focus.of so that if a caller expects to not find a Focus widget, it can deal with that as it sees fit. I modified InkWell to use this new behavior.
      
      This fixes an unreported issue that widgets using an InkWell will be drawn as focused the first time they are visited.
      3c16cf6a
  7. 15 May, 2019 1 commit
    • Greg Spencer's avatar
      Implements focus handling and hover for Material buttons. (#31438) · bb3c6605
      Greg Spencer authored
      This implements focus and hover handling for Material buttons. It inserts Focus widgets into the tree in order to allow buttons to be focusable via keyboard traversal (a.k.a. TAB traversal), and Listener widgets into the InkWell to allow the detection of hover states for widgets.
      
      Addresses #11344, #1608, and #13264.
      bb3c6605
  8. 26 Apr, 2019 1 commit
  9. 22 Mar, 2019 1 commit
  10. 15 Jan, 2019 1 commit
    • Ian Hickson's avatar
      Support setting the elevation of disabled floating action buttons (#24728) · 29928a46
      Ian Hickson authored
      Previously, a disabled floating action button always had zero
      elevation, which looks dumb.
      
      This also fixes the issue whereby highlightElevation was not honoured
      on floating action buttons.
      
      This also fixes an issue I found during testing whereby setState was
      being called during build when onHighlightChanged fired due to
      onPressed becoming null while a gesture is ongoing (which triggers an
      onTapCancel synchronously during build).
      29928a46
  11. 18 Oct, 2018 1 commit
  12. 16 Oct, 2018 1 commit
  13. 12 Sep, 2018 1 commit
  14. 07 Sep, 2018 1 commit
  15. 22 Aug, 2018 1 commit
    • liyuqian's avatar
      Add customBorder to InkWell so it can clip ShapeBorder (#20751) · ee8754df
      liyuqian authored
      This fixes #20483 by letting InkWell do its own clipping.
      
      PathOp.intersect is not used because we have too many unit tests that rely on clipping (e.g., paints..clipXXX()..drawCircle())
      
      The goldens are updated due to small AA changes of the additional clipPath.
      ee8754df
  16. 05 Jun, 2018 1 commit
  17. 17 May, 2018 1 commit
    • Greg Spencer's avatar
      Moving API doc asset URLs to point to the new location. (#17697) · ac67efbc
      Greg Spencer authored
      I'm moving the assets in the assets-for-api-docs repo to a slightly different location to help with organization in that repo, so this PR points the doc URLs to the new location. The old assets won't be removed until this PR makes its way to the API docs website.
      
      No documentation or code changes here, other than changing doc image URLs.
      ac67efbc
  18. 18 Apr, 2018 1 commit
  19. 03 Apr, 2018 1 commit
  20. 20 Mar, 2018 1 commit
  21. 01 Mar, 2018 1 commit
    • Greg Spencer's avatar
      Slider Visual Update (#14901) · 701eff4a
      Greg Spencer authored
      This implements an update to the look of the Slider widget.
      
      Specifically, it does the following:
      
      * Adds the ability to customize the colors of all components of the slider
      * Adds the ability to customize the shape of the slider thumb and value indicator
      * Adds the ability to show the value indicator on continuous sliders
      * Updates the default value indicator to be a "paddle" shape with new animations.
      * Changes the tick marks to be visible all the time on discrete sliders
      * Fixes a memory leak of an animation controller.
      * Removes "thumbOpenAtMin" flag, which is no longer needed, and can be emulated by the
      custom thumb shape support. It was not widely used.
      * Adds tests for all of the new features.
      701eff4a
  22. 06 Feb, 2018 1 commit
  23. 11 Jan, 2018 1 commit
    • Ian Hickson's avatar
      The Ink widget (#13900) · 09270dcb
      Ian Hickson authored
      This provides a way to draw colors, images, and general decorations on Material widgets, without interfering with InkWells that are further descendants of the widget.
      
      This thus provides a cleaner way to solve the issue of FlatButtons and InkWells not working when placed over Image widgets than the old hack of introducing a transparency Material.
      
      Fixes #3782.
      
      Also, some fixes to documentation, and remove a redundant property on the Image widget.
      09270dcb
  24. 09 Jan, 2018 1 commit
  25. 03 Jan, 2018 1 commit
  26. 21 Dec, 2017 1 commit
  27. 27 Sep, 2017 1 commit
  28. 15 Sep, 2017 1 commit
    • Ian Hickson's avatar
      Allow multiple FloatingActionButtons to be used on one screen. (#12074) · d6580489
      Ian Hickson authored
      * Allow FloatingActionButton to not have a heroTag.
      * Allow FloatingActionButton to not have a child.
      * Allow Tooltip to not have a child.
      * Improve the debug output of the default FloatingActionButton hero tag.
      * Improve the error message in the Hero clashing-tag case.
      * Improve the debug output of the Hero widget.
      * Improve the debug output of gesture-related widgets.
      * Minor improvements to documentation.
      * Fix some typos in comments.
      * Fix some style nits.
      d6580489
  29. 12 Sep, 2017 1 commit
  30. 17 Aug, 2017 1 commit
  31. 08 Aug, 2017 1 commit
  32. 03 Aug, 2017 1 commit
  33. 25 Jul, 2017 1 commit
  34. 01 Jul, 2017 1 commit
    • Ian Hickson's avatar
      Automatic silver keep alive (#11067) · 7ba1879b
      Ian Hickson authored
      * AutomaticKeepAlive
      
      A Widget that listens for notifications from widgets that don't want to die.
      
      * Automatically wrap SliverList and SliverGrid children in AutomaticKeepAlive widgets
      
      * Fixes for review comments
      7ba1879b
  35. 23 Jun, 2017 1 commit
  36. 16 Jun, 2017 1 commit
  37. 27 May, 2017 3 commits
    • Ian Hickson's avatar
      f437d025
    • Ian Hickson's avatar
      Fix dartdocs (#10361) · 767ab66c
      Ian Hickson authored
      You can't have a newline between the `]` and the `(` in an image in markdown it turns out.
      767ab66c
    • Ian Hickson's avatar
      Much work on the documentation (#10331) · f50caddf
      Ian Hickson authored
      Minor fixes throughout, e.g. removing trailing commas from the end of sample code expressions, changing headings to "sample code" more consistently, removing stale todos, fix typos in a private method name, minor grammar fixes, added some clarifications to CircularProgressIndicator, LinearProgressIndicator, CrossAxisAlignment, added some cross-references to various members, made it slightly clearer that layout algorithms are implementation details.
      
      Clarified "elevation" throughout.
      
      Added docs to InkResponse and InkWell.
      
      Added sample code for: SliverAppBar, Card, ListTile, EdgeInsets, Row, Column, CustomScrollView, ListView, SliverFixedExtentList, and SliverGrid.
      
      Fixes #10317.
      Fixes #10316.
      Fixes #10267. (sort of, see comment therein)
      Fixes #9331. (sort of, see comment therein)
      Fixes #9407. (sort of, see comment therein)
      f50caddf
  38. 24 May, 2017 1 commit