예제 #1
0
 public override Widget build(BuildContext context)
 {
     return(new Align(
                alignment: _alignment.evaluate(animation: animation),
                child: widget.child
                ));
 }
예제 #2
0
 public override Widget build(BuildContext context)
 {
     return(new Container(
                child: widget.child,
                alignment: _alignment?.evaluate(animation),
                padding: _padding?.evaluate(animation),
                decoration: _decoration?.evaluate(animation),
                foregroundDecoration: _foregroundDecoration?.evaluate(animation),
                constraints: _constraints?.evaluate(animation),
                margin: _margin?.evaluate(animation),
                transform: _transform?.evaluate(animation)
                ));
 }