- 12 Mar, 2020 1 commit
-
-
Dan Field authored
-
- 11 Mar, 2020 2 commits
- 10 Mar, 2020 2 commits
-
-
Gary Qian authored
Revert "Add missing features to `DefaultTextStyleTransition` and `AnimatedDefaultTextStyle` (#51517)" (#52352)
-
Michael Goderbauer authored
-
- 09 Mar, 2020 2 commits
-
-
Gary Qian authored
- 06 Mar, 2020 1 commit
-
-
Darren Austin authored
* Fix for negative padding from a curve in AnimatedPadding. * Added a EdgeInsets.clamp function that would return an EdgeInsets instance instead of a _MixedEdgeInsets used by the base class. This was causing some tests to fail that didn't have a text direction.
-
- 05 Mar, 2020 1 commit
-
-
Alexandre Ardhuin authored
-
- 04 Mar, 2020 2 commits
-
-
Flutter GitHub Bot authored
-
Flutter GitHub Bot authored
Keep render tree and element tree in sync when re-used elements move in a MultiChildRenderObjectElement's child list (#51674)
-
- 03 Mar, 2020 3 commits
-
-
Shi-Hao Hong authored
-
Greg Spencer authored
This PR adds the linux and windows target platform enum values, along with automatically setting the defaultTargetPlatform to the appropriate value on those platforms. Fixes #31366
-
Gary Qian authored
-
- 02 Mar, 2020 1 commit
-
-
Remi Rousselet authored
-
- 28 Feb, 2020 3 commits
-
-
stuartmorgan authored
This reverts commit 9375377f. Fixes #51511
-
Dan Field authored
-
Jason Simmons authored
Use strut box heights to calculate selection rectangles in order to ensure that they remain within visible bounds (#50354)
-
- 27 Feb, 2020 3 commits
-
-
Greg Spencer authored
When Focus.unfocus is called, the caller usually just thinks about wanting to remove focus from the node, but really, unfocus is a request to automatically pass the focus to another (hopefully useful) node. This PR removes the focusPrevious flag from unfocus, and replaces it with a disposition enum that indicates where the focus should go from here. The other value of the UnfocusDisposition enum is UnfocusDisposition.scope. UnfocusDisposition.previouslyFocusedChild is closest to what focusPrevious used to do: focus the nearest enclosing scope and use its focusedChild field to walk down the tree, finding the leaf focusedChild. This PR modifies it slightly so that it walks up to the nearest focusable enclosing scope before trying to focus the children. This change addresses #48903 A new mode: UnfocusDisposition.scope will focus the nearest focusable enclosing scope of this node without trying to use the FocusScopeNode.focusedChild value to descend to the leaf focused child. This is useful as a default for both text field finalization and for what happens when canRequestFocus is set to false. It allows the scope to stay focused so that nextFocus/previousFocus still work as expected, but removes the focus from primary focus. In addition to those changes, unfocus called on a FocuScope that wasn't the primary focus used to unfocus the primary focus instead. I removed that behavior, since it was buggy: if the primary focus was inside of a child scope, and you called unfocus on the parent scope, then the child scope could have focused another of its children instead, leaving the scope that you called unfocus on with hasFocus returning true still. If you want to remove the focus from the primary focus instead of the scope, that's easy enough to do: just call primaryFocus.unfocus(). Fixes #48903
-
Dan Field authored
-
- 26 Feb, 2020 2 commits
-
-
Miguel Beltran authored
-
- 24 Feb, 2020 1 commit
-
- 23 Feb, 2020 1 commit
-
-
Shi-Hao Hong authored
Fix tests that rely on FadeTransition incorrectly and depend on implementation details of FadeUpwardsTransitionBuilder (#51150)
-
- 20 Feb, 2020 2 commits
-
-
Alexandre Ardhuin authored
- 19 Feb, 2020 1 commit
-
-
Tjong Anthony authored
-
- 18 Feb, 2020 1 commit
-
-
Dan Field authored
* Avoid including a potentially animated invisible image
-
- 14 Feb, 2020 2 commits
-
-
Dan Field authored
Track images available on screen
-
Taufiq Rahman authored
* Feature: allow minLines in SelectableText
-
- 13 Feb, 2020 3 commits
-
-
Gary Qian authored
-
Greg Spencer authored
This re-lands #49235 with the addition of includeSemantics flag on the Focus widget so that the FocusTraversalGroup can create a Focus widget without affecting the semantics tree. The FocusTraversalGroup uses the Focus widget to create a grouping of descendants for traversal, but doesn't actually participate in focus (canRequestFocus is always false), so we don't want it to add a Semantics widget in that case, since that can cause semantics changes. The canRequestFocus attribute can also be used when a widget is disabled, so we do sometimes want to include Semantics even if that is false, but not in the case where it is always false, as for FocusTraversalGroup. - Added a test to make sure that FocusTraversalGroup doesn't add any semantics information.
-
Greg Spencer authored
This fixes a problem when unfocusing focus nodes where the ancestor focus nodes and scopes don't receive notification that a child was unfocused. Fixes #43497
-
- 12 Feb, 2020 3 commits
-
-
chunhtai authored
-
Jacob Richman authored
-
Greg Spencer authored
This reverts commit 8ef5e2f0 because it breaks some semantics tests.
-
- 11 Feb, 2020 3 commits
-
-
LongCatIsLooong authored
-
Alexandre Ardhuin authored
-
Greg Spencer authored
This change adds a way to provide explicit focus order for a part of the widget tree. It adds FocusTraversalPolicyGroup, which in many ways is similar to DefaultFocusTraversal, except that it groups a widget subtree together so that those nodes are traversed as a group. DefaultFocusTraversal doesn't work as one would expect: If there is more than one DefaultFocusTraversal inside of a focus scope, the policy can change depending on which node was asked to move "next", which can cause unexpected behavior. The new grouping mechanism doesn't have that problem. I deprecate DefaultFocusTraversal in this PR. It also adds OrderedFocusTraversalPolicy, which is a policy that can be supplied to FocusTraversalPolicyGroup to set the policy for a sub-tree. It looks for FocusTraversalOrder inherited widgets, which use a FocusOrder to do the sorting. FocusOrder has two subclasses: NumericalFocusOrder (which sorts based on a double), and LexicalFocusOrder, which sorts based on a String. As part of doing this, I refactored the way FocusTraversalPolicy is implemented so that it has more default implementation methods, and exposes a new protected member: sortDescendants, which makes it easier for developers to make their own policy subclasses: they only need to implement sortDescendants to get a new ordering behavior, but can also still override any of the default implementation behaviors if they need different behavior. I was able to do this without breaking the API (AFAICT).
-