getWrapper method
Implementation
Widget getWrapper(Widget child) {
if (widget.height != null) {
final Widget wrapper = SizedBox(height: widget.height, child: child);
return widget.autoPlay && widget.pauseAutoPlayOnTouch != null
? addGestureDetection(wrapper)
: (widget.isFastScrollingEnabled
? fastScrollWidget(wrapper)
: wrapper);
} else {
final Widget wrapper =
AspectRatio(aspectRatio: widget.aspectRatio, child: child);
return widget.autoPlay && widget.pauseAutoPlayOnTouch != null
? addGestureDetection(wrapper)
: (widget.isFastScrollingEnabled
? fastScrollWidget(wrapper)
: wrapper);
}
}