- 21 May, 2019 9 commits
-
-
Mattia Crovero authored
scrollController param on TextField and CupertinoTextField
-
Todd Volkert authored
This is another step towards supporting image loading progress notification at the widgets layer. This adds an `ImageChunkEvent` class along with associated `ImageChunkListener` callback signature and an `onChunk` property to `ImageStreamListener`. The events serve to notify registered listeners when byte chunks are received while loading an image. https://github.com/flutter/flutter/issues/32374
-
Lorenz Nickel authored
-
Greg Spencer authored
This just fixes up some comments for DefaultFocusTraversal, and fixes a minor bug when setting the onKey on a FocusNode on creation before attaching to it.
-
Todd Volkert authored
This re-applies #32437 with a fix to the broken device lab test.
-
Efthymis Sarmpanis authored
(all tests passed, github not displaying it)
-
Shi-Hao Hong authored
-
Todd Volkert authored
The current API was broken in that you registered multiple callbacks at once, but when you removed listeners, only the primary listener was used to determine what was removed. This led to unintuitive cases where the caller could get unexpected behavior. This updates the API to add and remove listeners using a newly introduced [ImageStreamListener] object, a value object that has references to the individual callbacks that may fire. flutter/flutter#24722 flutter/flutter#32374 flutter/flutter#32935
-
Greg Spencer authored
Resets the enabled color for outline text field default borders to "On Surface 38%" instead of "On Surface 12%" to match spec. Also fixes the hover overlay to be "On Surface 12%" to match spec.
-
- 20 May, 2019 9 commits
-
-
Todd Volkert authored
This will allow us to plumb the chunks in a chunked response up to the higher levels of the framework to notify interested parties of network loading progress. https://github.com/flutter/flutter/issues/32374
-
Todd Volkert authored
Currently, the fact that NetworkImage uses a static HttpClient makes it impossible to properly test, as a mock in one test will be reused in another test. This change fixes that. https://github.com/flutter/flutter/issues/32374
-
Efthymis Sarmpanis authored
-
Greg Spencer authored
This turns off focus highlight for filled text fields, since it turns out not to be to spec.
-
Todd Volkert authored
This reverts commit 069303d4.
-
Sam Rawlins authored
-
Todd Volkert authored
-
Todd Volkert authored
* AnimatedList * Flexible * Draggable * ValueListenableBuilder
-
- 18 May, 2019 2 commits
-
-
Greg Spencer authored
Disabled fields and buttons were responding to hover and focus changes, and they shouldn't.
-
Greg Spencer authored
This puts the new AnimationController reverseDuration argument to use in two places: focus for InkWells and fade out for Tooltips.
-
- 17 May, 2019 5 commits
-
-
LongCatIsLooong authored
Add CupertinoTabController that allows a CupertinoTabScaffold's current page to be controlled from an ancestor widget.
-
Shi-Hao Hong authored
* Moved Radio documentation line to be above sample * Added LabeledRadio sample * Add LabeledCheckbox sample * Add LabeledSwitch sample * Added LinkedLabelRadio sample to RadioListTile * Added LinkedLabelCheckbox sample to CheckboxListTile * Added LinkedLabelSwitch sample to SwitchListTile * Added reference to Semantics docs * Improve simple SwitchListTile, RadioListTile and CheckboxListTile samples * Added assets to all SwitchListTile, RadioListTile and CheckboxListTile samples
-
Justin McCandless authored
Adds a field that already exists in Material's TextField.
-
Greg Spencer authored
This adds support for an animated focusColor and hoverColor to InputDecorator. This color will blend with the background over a fade in period whenever the InputDecorator is focused or hovered, respectively. It also adds a Listener to the TextField to listen for hover events.
-
Darren Austin authored
-
- 16 May, 2019 5 commits
-
-
chunhtai authored
-
Alexandre Ardhuin authored
* use null aware operators * rollback changes about null-aware operator * disable lint prefer_is_not_empty
-
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.
-
Greg Spencer authored
This adds a reverseDuration parameter to AnimationController so that the animation has a different duration when going in reverse as it does going forward.
-
Jason Simmons authored
-
- 15 May, 2019 7 commits
-
-
Darren Austin authored
Removed the GestureDetector from the modal bottom sheet that dismissed it on tap and updated several tests to accommodate this change.
-
Amir Hardon authored
The PlatformViewsService listens for `viewFocused` calls on the platform_views system channel and fires a callback that focuses the focus node for the relevant AndroidView widget.
-
MH Johnson authored
-
Hans Muller authored
-
Chris Bracken authored
Correct docs and error message for UiKitViewController to refer to iOS view rather than Android views. Minor cleanup to the docs for PlatformViewsService, which previously mentioned Android only.
-
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.
-
Greg Spencer authored
This fixes propagation of needsCompositing from child widgets. When needsCompositing is turned on by a child widget, it necessarily sets the needsCompositing bit of its parent widget, but RenderPointerListener was ignoring that piece of information and only turning on compositing if it thought it needed it for itself. This corrects that, and adds a test for the condition, and updates a test that was affected by the change. Fixes #32525 (again)
-
- 14 May, 2019 3 commits
-
-
Darren Austin authored
Added 'enabled' property to the PopupMenuButton to allow the button to be disabled in the case where the menu would be empty.
-
Efthymis Sarmpanis authored
Add a more meaningful message to the assertion on children property of MultiChildRenderObjectWidget and SliverChildListDelegate. (#32487)
-
Hans Muller authored
-