- 10 Oct, 2019 1 commit
-
-
Tong Mu authored
* Adds a new parameter bool opaque to MouseRegion * The same to RenderMouseRegion and AnnotatedRegionLayer * Add findAnnotations to Layer
-
- 09 Oct, 2019 2 commits
-
-
Greg Spencer authored
This adds a Semantics node to the Focus and FocusScope widgets, setting the focused and focusable attributes so that the accessibility subsystem can be told when a control has the input focus. Includes an engine roll to flutter/engine@77252d2, and the following 8 engine changes: flutter/engine@77252d2 Greg Spencer Add missing focusable testing info (flutter/engine#13013) flutter/engine@0e42a29 skia-flutter-.. Roll src/third_party/skia 54548626a977..e27a503a0a21 (1 commits) (flutter/engine#13024) flutter/engine@6b56ed7 gaaclarke Refactor: FlutterDartProject (flutter/engine#13006) flutter/engine@393480c skia-flutter-.. Roll src/third_party/skia 77dde599c98a..54548626a977 (1 commits) (flutter/engine#13023) flutter/engine@080b89d skia-flutter-.. Roll src/third_party/skia 2b1a25a4d324..77dde599c98a (1 commits) (flutter/engine#13021) flutter/engine@90b0f30 Ben Konyi Roll src/third_party/dart f4a72bfc64..bb04f145b2 (18 commits) (flutter/engine#13020) flutter/engine@049fb89 skia-flutter-.. Roll fuchsia/sdk/core/linux-amd64 from q_uYX... to cknsi... (flutter/engine#13019) flutter/engine@6925b2a skia-flutter-.. Roll fuchsia/sdk/core/mac-amd64 from wuAtw... to u0JpE... (flutter/engine#13018) Related Issues Addresses #40101 Landing on red in order to fix the build: it's red because of the needed engine roll.
-
Kate Lovett authored
-
- 30 Sep, 2019 1 commit
-
-
Alexandre Ardhuin authored
* add missing trailing commas * add more missing trailing commas * add more and more missing trailing commas
-
- 24 Sep, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 18 Sep, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 17 Sep, 2019 3 commits
-
-
Michael Goderbauer authored
This reverts commit 6ad88bd5.
-
Michael Goderbauer authored
-
Alexandre Ardhuin authored
-
- 29 Aug, 2019 1 commit
-
-
Tong Mu authored
* Add FlagsSummary and implement Listener
-
- 23 Aug, 2019 1 commit
-
-
Greg Spencer authored
I noticed that we were pretty inconsistent with the way that we checked the value of clipBehavior in the framework, so I normalized the usages and updated docs where necessary. This is a breaking change if you used to pass null explicitly to FlatButton, OutlineButton or RaisedButton constructors, expecting to get Clip.none. It will now assert if you do that. Existing implementations that pass null implicitly by not specifying clipBehavior won't need to change their call sites. It always implicitly defaulted to Clip.none before, and it will continue to do that, it's only places where it was explicitly set to null in order to get the implicit default that it will fail.
-
- 16 Aug, 2019 1 commit
-
-
Yegor authored
Teach Layer and its implementations, RenderObject and its implementations, and PaintingContext to reuse engine layers. The idea is that a concrete RenderObject creates a Layer and holds on to it as long as it needs it (i.e. when it is composited, and the layer type does not change). In return, each Layer object holds on to an EngineLayer and reports it to the engine via addRetained and oldLayer. This allows the Web engine to reuse DOM elements across frames. Without it, each frame drops all previously rendered HTML and regenerates it from scratch.
-
- 08 Aug, 2019 2 commits
-
-
Tong Mu authored
This PR fixes an issue where MouseRegion crashes when being passed with closures instead of methods. It changes how a RenderMouseRegion handles its MouseTrackingAnnotation. Instead of creating a new annotation every time it becomes active and destroys it when deactivated, it now creates an annotation during the constructor and holds onto it until the end of its lifecycle. Instead of directly passing the argument callbacks to the annotation, it proxies them using methods.
-
Tong Mu authored
Fix an issue where MouseRegion will render its children twice.
-
- 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.
-
- 18 Jul, 2019 1 commit
-
-
Mouad Debbar authored
-
- 03 Jul, 2019 1 commit
-
-
Dan Field authored
-
- 25 Jun, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 19 Jun, 2019 1 commit
-
-
chunhtai authored
-
- 13 Jun, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 04 Jun, 2019 1 commit
-
- 03 Jun, 2019 1 commit
-
-
Tong Mu authored
- A refactor that moves the semantics declaration from detectors to recognizers to allow custom recognizers to respond to semantic gectures. - Renames all handlers related to semantics from Gesture* to Semantics*.
-
- 16 May, 2019 1 commit
-
-
Alexandre Ardhuin authored
* use null aware operators * rollback changes about null-aware operator * disable lint prefer_is_not_empty
-
- 15 May, 2019 1 commit
-
-
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)
-
- 13 May, 2019 2 commits
-
-
Greg Spencer authored
This fixes #32525, because it now marks the compositing bits as needing to be recalculated if the mouse tracker changes its idea of whether or not a mouse is attached. This bug occurred because the test framework was leaking state from one test to the next (the state about whether a mouse pointer was active), and so even though there was a "passing" test when run in order with the other tests in the file, when the test was run individually (or first), it would have failed and caught the bug. This adds an assert to make sure that after each test there are no simulated mouse pointers connected, and now calls removePointer in all of the tests where this was a problem.
-
- 10 May, 2019 2 commits
-
-
Jonah Williams authored
-
liyuqian authored
## Description These will help identify where the matrix starts to get wrong. Also fixed `RenderFittexBox` to no longer paint with empty child which previously triggered invalid matrix computations (NaN with dividing by 0). See also https://github.com/flutter/flutter/pull/7489 ## Related Issues https://github.com/flutter/flutter/issues/31650 https://github.com/flutter/flutter/issues/31700 https://github.com/flutter/flutter/issues/7431 ## Tests * RenderFittedBox does not paint with empty sizes
-
- 09 May, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 08 May, 2019 1 commit
-
-
Greg Spencer authored
I recently added some code to keep hover events from being propagated when a mouse wasn't attached. While that works, there are times when it can fire callbacks during the building of other components, since they can now be called from detach/attach. This is not ideal, since it will assert then. This changes the code so that it won't update the annotations during attach/detach, but also won't push the annotation layer unless a mouse is connected, achieving the same result as before, but with better semantics. The basic problem is that in the detach for RenderPointerListener, it would detach the annotation, which could cause onExit to be called on the annotation, since the widget was disappearing under the mouse, and thus needs to receive an onExit, but that onExit might be (and probably will be) calling setState, which marks the owning widget as needing to be built, sometimes when it already has been. The fix creates a new _ListenerElement that overrides activate and deactivate in order to tell the render object ahead of the detach that it might be detached, and so the onExit gets called before the detach instead of during it. In addition, I now avoid scheduling more than one check for mouse positions per frame.
-
- 06 May, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 03 May, 2019 1 commit
-
-
Greg Spencer authored
This is a re-land of #31561, after fixing performance regressions. Added change listening to the MouseTracker so that the Listener and tooltip can react to whether or not a mouse is connected at all. Added a change check to make sure Listener only repaints when something changed. Fixes #22817
-
- 30 Apr, 2019 1 commit
-
-
liyuqian authored
## Description Make `_RenderCustomClip`'s `clipBehavior` non-final so we can update it during `updateRenderObject`. This will support `clipBehavior` changes in hot reload. ## Related Issues Fixes #30863 ## Tests I added the following tests: * ClipRect updates clipBehavior in updateRenderObject * ClipRRect updates clipBehavior in updateRenderObject * ClipOval updates clipBehavior in updateRenderObject * ClipPath updates clipBehavior in updateRenderObject * PhysicalModel updates clipBehavior in updateRenderObject * PhysicalShape updates clipBehavior in updateRenderObject
-
- 29 Apr, 2019 1 commit
-
-
Dan Field authored
* Re-enable const
-
- 11 Apr, 2019 1 commit
-
-
Greg Spencer authored
Adds a paint after detaching/attaching hover annotations to keep the annotation layers in sync with the annotations attached to the mouse detector. Fixes #30744
-
- 10 Apr, 2019 1 commit
-
-
Dan Field authored
* Check for invalid elevation usage in the layer tree
-
- 26 Mar, 2019 1 commit
-
-
liyuqian authored
We can remove the hack because https://github.com/flutter/engine/pull/8183 has been rolled into the framework.
-
- 21 Mar, 2019 1 commit
-
-
Dan Field authored
* Composite physical layers even if elevation is 0
-
- 20 Mar, 2019 1 commit
-
-
Alexandre Ardhuin authored
* some space formattings * always use blocks in if-else if a block is used * format spaces in for and while * allow multiline if conditions * fix missing space
-
- 19 Mar, 2019 1 commit
-