NXS SWIPER

Swiper

Table of Contents

Installing

Add to pubspec.yaml file

dependencies:
  nxs_swiper: ^0.0.5

Import

import 'package:nxs_swiper/nxs_swiper.dart';

Demo

Code example

Code example (click to expand)
class MySwiperScreenState extends State<MySwiperScreen> {
  List<Container> pages = [];

  @override
  void initState() {
    super.initState();

    pages.add(
      Container(
        child: Text("Page 1"),
      ),
    );
    pages.add(
      Container(
        child: Text("Page 1"),
      ),
    );
    pages.add(
      Container(
        child: Text("Page 1"),
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return CustomSlider(
      pages: this.pages,
      paginationDotBorderColor: Colors.white,
      paginationDotBackgroundColor = Colors.transparent,
      paginationDotCurrentBackgroundColor = Colors.white
    );
  }
}

Libraries

nxs_swiper