示例#1
0
 protected override void forEachTween(TweenVisitor visitor)
 {
     _alignment = (AlignmentGeometryTween)visitor.visit(this, _alignment, widget.alignment,
                                                        (AlignmentGeometry value) => new AlignmentGeometryTween(begin: value));
     _padding = (EdgeInsetsGeometryTween)visitor.visit(this, _padding, widget.padding,
                                                       (value) => new EdgeInsetsGeometryTween(begin: value));
     _decoration = (DecorationTween)visitor.visit(this, _decoration, widget.decoration,
                                                  (Decoration value) => new DecorationTween(begin: value));
     _foregroundDecoration = (DecorationTween)visitor.visit(this, _foregroundDecoration,
                                                            widget.foregroundDecoration, (Decoration value) => new DecorationTween(begin: value));
     _constraints = (BoxConstraintsTween)visitor.visit(this, _constraints, widget.constraints,
                                                       (BoxConstraints value) => new BoxConstraintsTween(begin: value));
     _margin = (EdgeInsetsGeometryTween)visitor.visit(this, _margin, widget.margin,
                                                      (value) => new EdgeInsetsGeometryTween(begin: value));
     _transform = (Matrix4Tween)visitor.visit(this, _transform, widget.transform,
                                              (Matrix4 value) => new Matrix4Tween(begin: value));
 }
示例#2
0
 protected override void forEachTween(TweenVisitor visitor)
 {
     _padding = (EdgeInsetsGeometryTween)visitor.visit(this, _padding, widget.padding,
                                                       (EdgeInsetsGeometry value) => new EdgeInsetsGeometryTween(begin: value));
 }