Fix wrong documentation: There is no LeaderLayer._lastOffset anymore (#100300)

This commit is contained in:
fzyzcjy 2022-03-19 07:55:12 +08:00 committed by GitHub
parent 51e5332ba5
commit 36fa6c4d90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2511,7 +2511,7 @@ class FollowerLayer extends ContainerLayer {
final Matrix4 forwardTransform = _collectTransformForLayerChain(forwardLayers);
// Further transforms the coordinate system to a hypothetical child (null)
// of the leader layer, to account for the leader's additional paint offset
// and layer offset (LeaderLayer._lastOffset).
// and layer offset (LeaderLayer.offset).
leader.applyTransform(null, forwardTransform);
forwardTransform.translate(linkedOffset!.dx, linkedOffset!.dy);