コード例 #1
0
    Widget _buildOuterPagination(
        SwiperPlugin pagination, Widget swiper, SwiperPluginConfig config)
    {
        List <Widget> list = new List <Widget>();

        //Only support bottom yet!
        if (widget.containerHeight != 0 || widget.containerWidth != 0)
        {
            list.Add(swiper);
        }
        else
        {
            list.Add(new Expanded(child: swiper));
        }

        list.Add(new Align(
                     alignment: Alignment.center,
                     child: pagination.build(context, config)
                     ));

        return(new Column(
                   children: list,
                   crossAxisAlignment: CrossAxisAlignment.stretch,
                   mainAxisSize: MainAxisSize.min
                   ));
    }
コード例 #2
0
 public override Widget build(BuildContext context)
 {
     return(plugin.build(context, config));
 }