- 21 Aug, 2019 1 commit
-
-
Greg Spencer authored
This reverts commit a11d7314 because of a regression in flutter_gallery_ios32__transition_perf's 90th_percentile_frame_build_time_millis. Fixes #38860.
-
- 16 Aug, 2019 1 commit
-
-
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.
-
- 01 Aug, 2019 1 commit
-
-
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.
-
- 25 May, 2019 1 commit
-
-
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.
-
- 18 May, 2019 1 commit
-
-
Greg Spencer authored
Disabled fields and buttons were responding to hover and focus changes, and they shouldn't.
-
- 16 May, 2019 1 commit
-
-
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.
-
- 15 May, 2019 1 commit
-
-
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.
-
- 26 Apr, 2019 1 commit
-
-
Shi-Hao Hong authored
-
- 22 Mar, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 15 Jan, 2019 1 commit
-
-
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).
-
- 18 Oct, 2018 1 commit
-
-
Michael Goderbauer authored
-
- 16 Oct, 2018 1 commit
-
-
Alexandre Ardhuin authored
* Future<void> main * Future<void>.delayed * prefer_void_to_Null * address review comments
-
- 12 Sep, 2018 1 commit
-
-
Alexandre Ardhuin authored
* enable lint unnecessary_new * fix tests * fix tests * fix tests
-
- 07 Sep, 2018 1 commit
-
-
Jonah Williams authored
-
- 22 Aug, 2018 1 commit
-
-
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.
-
- 05 Jun, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 17 May, 2018 1 commit
-
-
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.
-
- 18 Apr, 2018 1 commit
-
-
Greg Spencer authored
Adding some tests for onTapDown and onTapCancel for the InkWell, as suggested in post-submission comments by @Hixie in #16190. Also, added those to the diagnostic output.
-
- 03 Apr, 2018 1 commit
-
-
Greg Spencer authored
-
- 20 Mar, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 01 Mar, 2018 1 commit
-
-
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.
-
- 06 Feb, 2018 1 commit
-
-
Hans Muller authored
-
- 11 Jan, 2018 1 commit
-
-
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.
-
- 09 Jan, 2018 1 commit
-
-
Hans Muller authored
-
- 03 Jan, 2018 1 commit
-
-
Michael Goderbauer authored
Fixes #13743 Fixes #12379 Follow-up to #13745 Also adds an option to hide gestures introduced by `InkWell` and `InkResponse` from the semantics tree (see also `GestureDetector.excludeFromSemantics`).
-
- 21 Dec, 2017 1 commit
-
-
Ian Hickson authored
This attempts to apply some of what we learnt from UX studies, namely that people wonder how to add multiple children to widget that take one child.
-
- 27 Sep, 2017 1 commit
-
-
Ian Hickson authored
-
- 15 Sep, 2017 1 commit
-
-
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.
-
- 12 Sep, 2017 1 commit
-
-
Jacob Richman authored
Diagnostics object is.
-
- 17 Aug, 2017 1 commit
-
-
Carlo Bernaschina authored
Some widgets are using closures even if the only values that are captured are this, context or widget, that can be accessed even from methods of the State object.
-
- 08 Aug, 2017 1 commit
-
-
Hans Muller authored
-
- 03 Aug, 2017 1 commit
-
-
Jacob Richman authored
Add Diagnosticable base class and documentation
-
- 25 Jul, 2017 1 commit
-
-
Jacob Richman authored
Refactor RenderObject.toStringDeep and Widget.toStringDeep code to use DiagnosticsNode.
-
- 01 Jul, 2017 1 commit
-
-
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
-
- 23 Jun, 2017 1 commit
-
-
Michael Goderbauer authored
* Provide haptic/acoustic feedback for tap & long-press on Android * review comments * fixed example code * review comments * comment fix
-
- 16 Jun, 2017 1 commit
-
-
Ian Hickson authored
-
- 27 May, 2017 3 commits
-
-
Ian Hickson authored
-
Ian Hickson authored
You can't have a newline between the `]` and the `(` in an image in markdown it turns out.
-
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)
-
- 24 May, 2017 1 commit
-
-
Ian Hickson authored
-