build method

  1. @override
Widget build(
  1. BuildContext context,
  2. SwiperPluginConfig config
)

Implementation

@override
Widget build(BuildContext context, SwiperPluginConfig config) {
  var alignment = this.alignment ??
      (config.scrollDirection == Axis.horizontal
          ? Alignment.bottomCenter
          : Alignment.centerRight);
  Widget child = Container(
    margin: margin,
    child: builder.build(context, config),
  );
  if (!config.outer) {
    child = Align(
      key: key,
      alignment: alignment,
      child: child,
    );
  }
  return child;
}