public override Widget build(int i, float animationValue, Widget widget) { float v = Unities._getValue(values, animationValue, i); return(Transform.rotate( degree: v, child: widget )); }
public override Widget build(int i, float animationValue, Widget widget) { float v = Unities._getValue(values, animationValue, i); return(new Opacity( opacity: v, child: widget )); }
public override Widget _buildItem(int i, int realIndex, float animationValue) { float s = Unities._getValue(scales, animationValue, i); float f = Unities._getValue(offsetsX, animationValue, i); float fy = Unities._getValue(offsetsY, animationValue, i); float o = Unities._getValue(opacity, animationValue, i); float a = Unities._getValue(rotates, animationValue, i); Alignment alignment = widget.scrollDirection == Axis.horizontal ? Alignment.bottomCenter : Alignment.centerLeft; return(new Opacity( opacity: o, child: Transform.rotate( degree: a / 180.0f, child: Transform.translate( key: new ValueKey <int>(_currentIndex + i), offset: new Offset(f, fy), child: Transform.scale( scale: s, alignment: alignment, child: new SizedBox( width: widget.itemWidth, height: widget.itemHeight, child: widget.itemBuilder(context, realIndex) ) ) ) ) )); }
public override Widget build(int i, float animationValue, Widget widget) { float s = Unities._getValue(values, animationValue, i); return(Transform.scale(scale: s, child: widget)); }