Monday, June 5, 2023

flutter_swiper-The best swiper for flutter with multiple layouts and infinite loops

The best swiper for flutter , with multiple layouts, infinite loop.


  1. Layout for pagination-We are using this project flutter_page_indicator now .
  2. PageTransformer-Finally, we have PageTransformer like android, just set a transformer to Swiper, it returns a widget that has been transformed. For now, only support for layout DEFAULT



flutter_swiper : ^lastest_version

to your pubspec.yaml ,and run

flutter packages get 

in your project’s root directory

Basic Usage

Create a new project with command

flutter create myapp

Edit lib/main.dart like this:

import 'package:flutter/material.dart';

import 'package:flutter_swiper/flutter_swiper.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
      home: new MyHomePage(title: 'Flutter Demo Home Page'),

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  _MyHomePageState createState() => new _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {

  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(widget.title),
    body:  new Swiper(
        itemBuilder: (BuildContext context,int index){
          return new"",fit: BoxFit.fill,);
        itemCount: 3,
        pagination: new SwiperPagination(),
        control: new SwiperControl(),


Read more about this plugin on GitHub

Leave a Reply